mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
Hound
This commit is contained in:
parent
27d03e61bd
commit
df5f83610e
1 changed files with 8 additions and 8 deletions
16
vendor/deadline/custom/events/Pype/Pype.py
vendored
16
vendor/deadline/custom/events/Pype/Pype.py
vendored
|
|
@ -19,7 +19,7 @@ def CleanupDeadlineEventListener(eventListener):
|
|||
|
||||
|
||||
class PypeEventListener(Deadline.Events.DeadlineEventListener):
|
||||
"""
|
||||
"""
|
||||
Called on every Deadline plugin event, used for injecting Pype
|
||||
environment variables into rendering process.
|
||||
|
||||
|
|
@ -30,11 +30,11 @@ class PypeEventListener(Deadline.Events.DeadlineEventListener):
|
|||
AVALON_APP_NAME
|
||||
Without these only global environment would be pulled from Pype
|
||||
|
||||
Configure 'Path to Pype executable dir' in Deadlines
|
||||
Configure 'Path to Pype executable dir' in Deadlines
|
||||
'Tools > Configure Events > pype '
|
||||
Only directory path is needed.
|
||||
|
||||
"""
|
||||
"""
|
||||
ALREADY_INJECTED = False
|
||||
|
||||
def __init__(self):
|
||||
|
|
@ -111,7 +111,7 @@ class PypeEventListener(Deadline.Events.DeadlineEventListener):
|
|||
self.LogInfo("Extending sys.path with: " + str(path))
|
||||
sys.path.append(path)
|
||||
|
||||
self.LogInfo("inject_pype_environment start")
|
||||
self.LogInfo("inject_pype_environment start")
|
||||
try:
|
||||
pype_command = "pype_console"
|
||||
if platform.system().lower() == "linux":
|
||||
|
|
@ -165,12 +165,12 @@ class PypeEventListener(Deadline.Events.DeadlineEventListener):
|
|||
|
||||
Deadline.Scripting.RepositoryUtils.SaveJob(job) # IMPORTANT
|
||||
self.ALREADY_INJECTED = True
|
||||
|
||||
|
||||
os.remove(export_url)
|
||||
|
||||
self.LogInfo("inject_pype_environment end")
|
||||
except Exception:
|
||||
import traceback
|
||||
import traceback
|
||||
self.LogInfo(traceback.format_exc())
|
||||
self.LogInfo("inject_pype_environment failed")
|
||||
Deadline.Scripting.RepositoryUtils.FailJob(job)
|
||||
|
|
@ -220,7 +220,7 @@ class PypeEventListener(Deadline.Events.DeadlineEventListener):
|
|||
|
||||
def OnJobError(self, job, task, report):
|
||||
self.LogInfo("OnJobError LOGGING")
|
||||
#data = {"task": task, "report": report}
|
||||
# data = {"task": task, "report": report}
|
||||
|
||||
def OnJobPurged(self, job):
|
||||
pass
|
||||
|
|
@ -242,7 +242,7 @@ class PypeEventListener(Deadline.Events.DeadlineEventListener):
|
|||
|
||||
def OnSlaveRendering(self, host_name, job):
|
||||
self.LogInfo("OnSlaveRendering LOGGING")
|
||||
|
||||
|
||||
def OnSlaveStartingJob(self, host_name, job):
|
||||
self.LogInfo("OnSlaveStartingJob LOGGING")
|
||||
# inject params must be here for Resubmits
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue