mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
OP-3021 - check if suspend_publish exists
If exists and set to True, suspend publish job. Artist need to enable it manually.
This commit is contained in:
parent
cf362dc502
commit
2c7b1aab50
1 changed files with 4 additions and 0 deletions
|
|
@ -284,6 +284,10 @@ class ProcessSubmittedJobOnFarm(pyblish.api.InstancePlugin):
|
|||
else:
|
||||
payload["JobInfo"]["JobDependency0"] = job["_id"]
|
||||
|
||||
self.log.info("suspend {}".format(instance.data.get("suspend_publish")))
|
||||
if instance.data.get("suspend_publish"):
|
||||
payload["JobInfo"]["InitialStatus"] = "Suspended"
|
||||
|
||||
index = 0
|
||||
for key in environment:
|
||||
if key.upper() in self.enviro_filter:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue