Page 1 of 1

How to Skip or Restart a task using python?

Posted: Tue Apr 04, 2017 7:41 pm
by rhradec
I've wrote a python script that re-submit jobs that have being deleted, back to Afanasy.

The problem I'm having is to access the job afterwards, and based on the rendered frames already on disk, set the equivalent task to SKIP, so afanasy will only render what's not already on disk!

So, how can I set tasks to SKIP or Restart in a job/block, using python?

thanks in advance...
-H

Re: How to Skip or Restart a task using python?

Posted: Tue Apr 04, 2017 7:58 pm
by timurhai
Hi.
You can skip task from web gui and see network log for a json instruction.
The same can show afwatch running from linux terminal.

Re: How to Skip or Restart a task using python?

Posted: Tue Apr 04, 2017 10:01 pm
by rhradec
so, how I can see the network log for the json instruction?

Re: How to Skip or Restart a task using python?

Posted: Tue Apr 04, 2017 11:23 pm
by rhradec
Found it!

by clicking on the:
Image

it shows the normal log, but then, on the right corner:
Image

by clicking on the 'net' tab, it shows all the json messages!

So, for future reference if someone else wants to do the same, I was able to sneak a peek at the json skip message the way Timurhai suggested:

Code: Select all

 {"action": {"user_name":"coord","host_name":"pc","type":"jobs","ids":[10],"operation":{"type":"skip","task_ids":[3]},"block_ids":[0]}}
Awesome!

thanks a million, Timurhai!

cheers..
-H