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
How to Skip or Restart a task using python?
Re: How to Skip or Restart a task using python?
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.
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).
CGRU 3.3.1, Ubuntu 20.04, 22.04, MS Windows 10 (clients only).
Re: How to Skip or Restart a task using python?
so, how I can see the network log for the json instruction?
Re: How to Skip or Restart a task using python?
Found it!
by clicking on the:
it shows the normal log, but then, on the right corner:
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:
Awesome!
thanks a million, Timurhai!
cheers..
-H
by clicking on the:
it shows the normal log, but then, on the right corner:
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]}}
thanks a million, Timurhai!
cheers..
-H