Query ID of submitted job

If you are seeking for help, this is the right place to ask!

Query ID of submitted job

Postby dupp » 03 Oct 2018, 14:10

Hi,

We have built our own submitter for Maya. Now I need to improve it with dependencies.

Let's say we are submitting two jobs:
1. Yeti fur caching
2. V-ray render

When I submit the first job I need to get the ID for it so I can set dependencies on the second.

I'm running RpRcCmd.exe as a sub process from Python using subprocess.call.

How can I have it to return the job ID?

/Anders
dupp
 
Posts: 11
Joined: 04 Dec 2014, 16:17

Re: Query ID of submitted job

Postby Shoran Support » 03 Oct 2018, 14:32

Either simply parse its output or use the switch -retnjid, which will return the net job ID as the process result code.
User avatar
Shoran Support
RenderPal Team
 
Posts: 1189
Joined: 11 Apr 2008, 00:35
Location: Germany

Re: Query ID of submitted job

Postby dupp » 03 Oct 2018, 14:59

Amazing, works like a charm! thanks!
dupp
 
Posts: 11
Joined: 04 Dec 2014, 16:17


Return to Support

Who is online

Users browsing this forum: Bing [Bot] and 2 guests

cron