Handling SIGSTOP/SIGCONT

I was surprised to find that DL seems to panic somewhat if the user sends SIGSTOP to the render process and it terminates the render process. Since DL doesn’t provide a way to pause nodes on those platforms where SIGSTOP/SIGCONT are supported, I’d hoped to do this manually. What’s the best way to do this without spooking DL?

Logs are below :

0: STDOUT: Constructing rooms…99 %
0: WARNING: Monitored managed process Lightwave0 is no longer running
Scheduler Thread - Render Thread 0 threw an error:
Scheduler Thread - Exception during render: An error occurred in RenderTasks(): Monitored managed process “Lightwave0” has exited or been terminated.
at Deadline.Plugins.ScriptPlugin.RenderTasks (Int32 startFrame, Int32 endFrame, System.String& outMessage) [0x00000] in :0

Exception Details
RenderPluginException – Exception during render: An error occurred in RenderTasks(): Monitored managed process “Lightwave0” has exited or been terminated.
at Deadline.Plugins.ScriptPlugin.RenderTasks (Int32 startFrame, Int32 endFrame, System.String& outMessage) [0x00000] in :0
RenderPluginException.Cause: JobError (2)
Exception.Source: deadline
Exception.TargetSite: Void RenderTask(Int32, Int32)
Exception.Data: ( )
Exception.StackTrace:
at Deadline.Plugins.Plugin.RenderTask (Int32 startFrame, Int32 endFrame) [0x00000] in :0
at Deadline.Slaves.SlaveRenderThread.RenderCurrentTask () [0x00000] in :0

<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

This functionality isn’t supported by Deadline. SIGSTOP’ing the process makes it appear that the process has exited, which is why Deadline reports this error. I don’t know if there is anyway around this, because the Process class that Deadline uses to manage the render process doesn’t seem to know the difference between exited and suspended.

Cheers,

  • ryan

I’m hoping to workaround it by using SIGSTOP to suspend the Deadline process and then follow that with a SIGSTOP on the rendering process. Hopefully it will work. It would allow me to use a 4th machine that I have to share with my wife, and she isn’t keen on having to use it when it is number crunching :smiley: