Loading ccnode/handlers.py +21 −0 Original line number Diff line number Diff line Loading @@ -800,3 +800,24 @@ class NodeHandler(RpcHandler): ################################## # Job management ################################## @pure def job_list(self): ''' List all existing jobs sorted by state, with ID and type. ''' return self._host_handle.jobmgr.list() @pure def job_log(self, jid): ''' Get log messages of a given job (human friendly text string with carriage return). ''' # get the job job = self._host_handle.jobmgr.get_job(jid) # return log string return job.get_log() Loading
ccnode/handlers.py +21 −0 Original line number Diff line number Diff line Loading @@ -800,3 +800,24 @@ class NodeHandler(RpcHandler): ################################## # Job management ################################## @pure def job_list(self): ''' List all existing jobs sorted by state, with ID and type. ''' return self._host_handle.jobmgr.list() @pure def job_log(self, jid): ''' Get log messages of a given job (human friendly text string with carriage return). ''' # get the job job = self._host_handle.jobmgr.get_job(jid) # return log string return job.get_log()