Event Plugin Retry failed

We have a custom plugin that generates a quicktime and various other stuff. The problem is when there is brief disconnection with a network drive the event plugin fails (executes on JobFinished).

Is there a way make the event plugin retry the OnJobFinshed similar to how tasks gets retried til a certain failure threshold?

I’m assuming it should retry. I don’t think the ‘FailRender’ or equivalent call is possible from the event script though if you have to manually force it to fail.

If you’re not comfortable posting your logs and script, could you shoot it over to me in support? The usual support@thinkboxsoftware.com should do just fine.

​So I was told that an event script won’t be re-tried since there’s no way to control it within the Monitor.

I’m going to look at what you’ve sent us and see if it’s possible to do a try-catch loop or something a few times.

So, I do think having something like this would be helpful (pseudocode):

[code]count = 10
not_submitted = True
while not_submitted and count != 0:
try:
try_submit_quicktime()
not_submitted = False
catch:
print(“failed, trying again”)

count--
sleep(20)

[/code]

Note though that if you don’t have async events on, this’ll tie up the Slave for up to 200 seconds. We do this sort of thing all over the place in Deadline when dealing with network I/O.

Thank you Edwin, will have a look at implementing that:)

Is there any way of doing this with scripting? Retrying the event?

Hello Toke,

I will have to ask Edwin to answer this when he is back on Monday.

Cheers,