DeadlinePlugin object Callbacks

HI
Im a little novice and need some help.
Im using a pre task script for a render job, that I want to add a callback if the task process exits.

def __main__(*args):
    deadlinePlugin = args[0]
    
    @deadlinePlugin.MonitoredManagedProcessExitCallback()
    def my_fuction():
                #some code

All I get is an exception that the Event Binding object is not callable,
what I’m I doing wrong?

Privacy | Site terms | Cookie preferences