I put a feature request in for this kind of thing, would love to see it as an optional feature on submission.
But also to see it as a post job clean up option, so if you delete an old job then it cleans up these files also, could it possible to run your plugin this way OnJobDeleted
if the job is deleted it deletes the intermediate export files?
Exactly my thoughts. I mentioned to my co-worker about using OnJobDeleted for the cleanup of files that the artist may have not opted in on the event plugin. Possibly useful for deleting the temp Quick Draft movies too.
Yesterday, I just showed someone how to enable our “IntermediateCleanup” event plugin and they managed to remember to enable it on three out of four Arnold jobs. (Better than I expected.)
Thanks for the OnJobSubmitted suggestion. I briefly looked at it this morning and I called GetJobInfoKeys and can see the key I’d like to use is “EventOptIns”. However I’m not seeing anything for setting a value for it. I only see SetJobExtraInfoKeyValue but not something like “SetJobInfoKeyValue”.
I tried finding examples that haveEventOptIns and I only see it on the manual job submission/deadlinecommand.
Currently, I’m thinking that the cleanup as Opt-In and then followed up as OnJobDeleted should be sufficient. Still have to write the OnJobDeleted event and see how much of a load the file deletions will be on the localhost. From reading, I think OnJobDeleted runs from the monitor and not the worker.