mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
ensured backup connection to local - temp fix
This commit is contained in:
parent
0d8656d2bd
commit
8d17fbc7db
1 changed files with 3 additions and 2 deletions
|
|
@ -25,11 +25,12 @@ class ValidateMindbenderDeadlineDone(pyblish.api.InstancePlugin):
|
|||
4: "Failed",
|
||||
6: "Pending",
|
||||
}
|
||||
|
||||
url = api.Session["AVALON_DEADLINE"] + "/api/jobs?JobID=%s"
|
||||
deadline = api.Session.get("AVALON_DEADLINE", "https://localhost:8082")
|
||||
url = "{}/api/jobs?JobID=%s".format(deadline)
|
||||
|
||||
for job in instance.data["metadata"]["jobs"]:
|
||||
response = requests.get(url % job["_id"])
|
||||
self.log.info(response)
|
||||
|
||||
if response.ok:
|
||||
data = response.json()[0]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue