AWS Thinkbox Discussion Forums

Deadline Scripting api: get a task object from a current plugin context

Hello,

Im adding some error handling to fix a bug in maya2016.5, where the prefernces get corrupted.

I have setup the error handler to update the prefernces on the current node, now i want to set the current running task to requeued state.
just cant figure it out…

RepositoryUtils.RequeueTasks() , requires a job object and a list of task objects, but i cant see any way to convert a task id from self.deadlinePlugin.GetCurrentTaskId() to a task object…

can someone point me in the right direction please?

i do have a work around for this , which is not trigger the requeue from deadline, but it seems like this would be better done in deadline.

  • edit updated the title

Cheers
kym

The only way I can think of off the top of my head is to send a CancelTask command to the Launcher using ExecuteCommand:

docs.thinkboxsoftware.com/produ … 3b29436f14

Is this from the currently executing plugin? Antoher option might be to abort the render with a “minor” level. That won’t log an error:

docs.thinkboxsoftware.com/produ … 7e1a561b56

Privacy | Site terms | Cookie preferences