AWS Thinkbox Discussion Forums

Event with OnJobSubmittedCallback not firing with latest deadline client

We’re having an issue with deadline event that has stopped functioning after updating to deadline client 10.3.2.1.

I know that some python code updates are required due to the update in python version - I think I’ve addressed these but even after stripping the event back to a single log entry, It doesn’t seem to run. This seems to apply on both windows and linux render nodes.

If I submit a render on a node with 10.2 deadline client - it runs fine and I see the log entry for my event in the Job Report list.

I’ve checked all the logs I can think of. E.g. deadline monitor console shows no issue reloading event plugin when I make modifications.

I’ve included the code below. Any hints for how to diagnose the problem would be much appreciated!


from Deadline.Events import DeadlineEventListener

def GetDeadlineEventListener():
    return EnvTransferListener()


def CleanupDeadlineEventListener(deadlinePlugin):
    deadlinePlugin.Cleanup()

class EnvTransferListener (DeadlineEventListener):

    def __init__(self):
        super().__init__() # Required in Deadline 10.3 and later.
        self.OnJobSubmittedCallback += self.OnJobSubmitted

    def Cleanup(self):
        del self.OnJobSubmittedCallback

    def OnJobSubmitted(self, job):

        self.LogInfo("Copying env keys")

Does it need the if part first or is that just adding it regardless?
image

Hey, thanks for coming back to me!

I’ve tried it both ways without success - I think that if statement is really only for backward compatibility, I’m seeing this issue only where deadline client has been updated to 10.3. Very confused!

Privacy | Site terms | Cookie preferences