AWS Thinkbox Discussion Forums

Python exceptions and re-queueing

Would it be possible to change Deadline’s behavior so Python exceptions within the PluginPreLoad.py or Plugin.py files are considered “fatal” errors? Allowing a broken plugin continue to fail seems like a bit of a waste…,

Here’s what we’re going to to…

Any Python error that occurs before the DeadlinePlugin is initialized will be considered fatal, so they will fail the task. This includes errors in the PluginPreLoad script, the DeadlinePlugin constructor, etc. This makes sense, since the plugin will never initialize at this point.

In every other case (after the DeadlinePlugin is initialized), Python exceptions will be treated like they currently do, by DEFAULT. To have every Python exception be treated as fatal, you just have to set “self.FatalPythonErrors = True” in the DeadlinePlugin’s InitializeProcess function.

We didn’t want to make a significant shift in philosophy with regards to errors at this stage, so we figured we would just give the user the choice. :slight_smile:

This change will be included in beta 12.

Cheers,

  • Ryan

Sounds perfect. Thanks Ryan.

Privacy | Site terms | Cookie preferences