Hello, Is there a way to debug event plugins. I wrote one and it seems to compile fine, I get no errors when I submit the job, but the event script never seems to kick in and I am not sure how to debug that. Is there an error log somewhere or something that I can check to see if it failed? Thanks.
-Christian
Hi Christian,
In Deadline 5.0, only event plugin errors are saved with the job. You can view them like a regular job error by right-clicking on the job and selecting Job Reports -> View Error Reports. In 5.1 (which will be released very soon), event plugin logs will now be saved with the job logs as well. This is helpful if the event doesn’t throw an error, but still doesn’t behave as expected.
If you want to upload your event plugin, we can take a look.
Cheers,
Hi Ryan, As an overview; at my studio here, we turn over shots to our editing department as Quicktime Avid DNX and what I am trying to do simply is have an event plugin that can create these for me after the final comps are rendered. I downloaded the quicktime dailes script that you guys uploaded, however for some reason, quicktime just hangs for an infinity when it goes to create the quicktime. I also tried the DJV version and I couldnt get that to work either, So as a handling for this I have been using FFMpeg. It works great and creates the quicktimes pretty quickly (no pun intended… ) I have a submission script for the FFMpeg but I want to turn this into an event plugin that works automaically.
So I took the quicktime event script and tried to modify it to work with FFmpeg and the result was my last post. When I checked the error log for the job there was none generated so I thought maybe there was another python log somewhere.
I have uploaded the py script here so you can check it out if you want to. Thanks for you help on this.
ffmpegGen.txt (5.68 KB)
Thanks for the details! Could you actually zip up the whole ffmpegGen plugin folder and post it? That way, we can just drop it into our repository and test.
Thanks!
surething, here you go.
ffmpegGen.zip (3.19 KB)
Thanks! I didn’t test it yet, but the first thing I noticed was that the plugin is currently disabled. In the Monitor, while in Super User Mode, select Tools -> Configure Event Plugins. Select ffmpegGen from the list on the left, enable the plugin, and press OK. The event plugin is only triggered when it is enabled.
Note that when you are enabling this feature from the Monitor, you are actually just configuring the Enabled setting defined in your ffmpegGen.dlinit/ffmpegGen.param files.
After enabling the plugin, if you still can’t get it to do anything, let us know and we’ll dig further.
Cheers,
Thanks Ryan, I actually disabled it while I tried to figure out what was going on.
Ah, okay.
I enabled it and manually marked a job as complete to trigger it, and the event fired, so that’s a good sign. I just added some LogInfo lines before the pool/plugin name check to confirm this. What you can do is add LogInfo lines to debug the plugin, and then manually requeue and mark tasks of a job complete from the Monitor to trigger the event. The LogInfo lines will go to the Monitor log, which you can find from the Monitor by selecting Help -> Explore Log Folder.
Cheers,
Oh, great. well that will help alot, because I wasn’t sure how to get some output from the script so I could follow the execution. Tks. If you see any other issues with it, please let me know and I will see what I can do now from my end. Thanks again!
Hey Ryan, so I tried running the plugin and no event fired. It seems that you have this firing events there? Is there something else that I need to have turned on for this so fire events?
That’s strange. Just to confirm, are you running at least Deadline 5.0 on all your machines? Also, does the plugin show up in the Monitor when you select Tools -> Configure Event Plugins (while in Super User Mode)? I had it firing here without any modifications, so that’s strange that it’s not working for you…