AWS Thinkbox Discussion Forums

How to manually trigger an error in application plugin

I have a custom plugin where I want to log errors so that they appear in the Deadline Monitor so that the users can see them, but I don’t want to fail the job. The only way that I’ve been able to trigger errors was using DeadlinePlugin.FailRender. I was hoping to find a way to just increment the job errors, but I haven’t been able to figure out if this is even possible.

Example error handling in Application Plugin:

    def HandleStdoutError(self):
        """Callback for when a line of stdout contains an ERROR message."""
        self.FailRender("Detected an error: " + self.GetRegexMatch(0))

Ah that can’t be done. Errors on a job are task-ending. So you’re not able to increment the error count without generating an error report, which only happens when a task ends with a FailRender call.

Understood, thank you

1 Like
Privacy | Site terms | Cookie preferences