@cors.crossdomain(origin='<STR_LIT:*>')<EOL><INDENT>def get(self, worker_id):<DEDENT>
code = <NUM_LIT:200><EOL>if worker_id == '<STR_LIT:all>':<EOL><INDENT>report = {'<STR_LIT>': [{<EOL>'<STR_LIT:id>': job,<EOL>'<STR_LIT>': self._inspect_worker(job)}<EOL>for job in self.jobs]<EOL>}<EOL><DEDENT>elif worker_id in self.jobs:<EOL><INDENT>report = {<EOL>'<STR_LIT:id>': worker_id,<EOL>'<STR_LIT>': self._inspect_worker(worker_id)<EOL>}<EOL><DEDENT>else:<EOL><INDENT>report = {'<STR_LIT:error>': '<STR_LIT>'.format(worker_id)}<EOL>code = <NUM_LIT><EOL><DEDENT>return flask.jsonify(report), code<EOL>
Return status report