Write messages to slavelog from external source

Hey, is it possible to insert custom error messages to the slavelog when an external process ends the render early?

Sorry for missing this. Can you elaborate on what you are trying to do? A bit more on your workflow, or the workflow you want, would be helpful in figuring out if this is a doable thing.

Hi,

Figured id add to this.
If you have a python dev in house, yes you can change or add new errors to the plugins that deadline provides or spin off your own.

We have done this fairly heavily in the mayaBatch plugin, this plugin has a ton of out of the box error handling, but we have added our own handlers to be able to add our own error messages for know issues, for example.

So a really good example of what your after, which we found it was easier to wrap with a nicer error is when maya crashes with a stack trace.

So in the plugins InitializeProcess function we created some new erros to look for:

self.AddStdoutHandlerCallback(".*Writing crash report.*").HandleCallback += self.HandleCrashReport self.AddStdoutHandlerCallback(".*Segmentation fault.*").HandleCallback += self.HandleCrashReport

We then created a new function called HandleCrashReport which looks like this:

def HandleCrashReport(self): self.deadlinePlugin.FailRender( "Maya has Fatally Crashed While attempting to render this task. Please check the bottom of the render logs to see what may have occured.")

This way we could redirect a know error to a more human readable.
There may be a much simpler way to do this, but we find this works best for us.

Hope this helps.
Cheers
Kym