How to Skip or Restart a task using python?

General discussions and questions.
Post Reply
rhradec
Posts: 4
Joined: Tue Apr 04, 2017 7:34 pm

How to Skip or Restart a task using python?

Post 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
User avatar
timurhai
Site Admin
Posts: 911
Joined: Sun Jan 15, 2017 8:40 pm
Location: Russia, Korolev
Contact:

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

Post 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.
Timur Hairulin
CGRU 3.3.1, Ubuntu 20.04, 22.04, MS Windows 10 (clients only).
rhradec
Posts: 4
Joined: Tue Apr 04, 2017 7:34 pm

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

Post by rhradec »

so, how I can see the network log for the json instruction?
rhradec
Posts: 4
Joined: Tue Apr 04, 2017 7:34 pm

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

Post 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
Post Reply