Run post jobs script for any jobs by default

An event plugin could be used here. Couple of options:

  1. Write an event plugin for “onJobSubmitted” so when a job is submitted, it has auto assigned a post job script. This would be similar to this event plugin here:
    github.com/ThinkboxSoftware/Dea … Timeout.py

except it would look like this (oops, I just wrote it!)

[code]from Deadline.Events import *
from Deadline.Scripting import *

def GetDeadlineEventListener():
return SetJobPostJobScript()

def CleanupDeadlineEventListener( eventListener ):
eventListener.Cleanup()

class SetJobPostJobScript( DeadlineEventListener ):
def init( self ):
self.OnJobSubmittedCallback += self.OnJobSubmitted

def Cleanup( self ):
    del self.OnJobSubmittedCallback

def OnJobSubmitted( self, job ):
    scriptFilename = "/network/path/to/scriptFilename.py"
    RepositoryUtils.SetPostJobScript( job, scriptFilename )[/code]
  1. Alternatively, why not just execute your script directly in an event plugin when “onJobFinished” callback occurs? Various process utils are here or you can use subprocess, etc:

docs.thinkboxsoftware.com/produc … 2dbe6f2fb4