mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-26 13:52:15 +01:00
added more jobs info to status
This commit is contained in:
parent
8199cf74f5
commit
eb39271ffb
1 changed files with 7 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue