def status(self, signum):
self.log.debug('<STR_LIT>')<EOL>new_status_callbacks = []<EOL>for status_call in self.status_callbacks:<EOL><INDENT>try:<EOL><INDENT>self.log.debug("<STR_LIT>".format(status_call['<STR_LIT>'].__name__, status_call['<STR_LIT:args>'], status_call['<STR_LIT>']))<EOL><DEDENT>except AttributeError:<EOL><INDENT>self.log.debug("<STR_LIT>".format(str(status_call)))<EOL><DEDENT>apply(status_call['<STR_LIT>'], status_call['<STR_LIT:args>'], status_call['<STR_LIT>'])<EOL>if status_call['<STR_LIT>']:<EOL><INDENT>new_status_callbacks.append(status_call)<EOL><DEDENT><DEDENT>self.status_callbacks = new_status_callbacks<EOL>self._resume(signum)<EOL>
Run all status tasks, then run all tasks in the resume queue