added more jobs info to status

This commit is contained in:
iLLiCiTiT 2021-10-12 14:15:04 +02:00
parent 8199cf74f5
commit eb39271ffb

View file

@ -95,7 +95,13 @@ class Job:
self._worker.set_current_job(None)
def status(self):
output = {}
worker_id = None
if self._worker is not None:
worker_id = self._worker.id
output = {
"id": self.id,
"worker_id": worker_id
}
if self._message:
output["message"] = self._message