Query ID of submitted job

If you are seeking for help, this is the right place to ask!
Post Reply
dupp
Posts: 13
Joined: 04 Dec 2014, 16:17

Query ID of submitted job

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

User avatar
Shoran Support
RenderPal Team
Posts: 1220
Joined: 11 Apr 2008, 00:35
Location: Germany
Contact:

Re: Query ID of submitted job

Post by 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.

dupp
Posts: 13
Joined: 04 Dec 2014, 16:17

Re: Query ID of submitted job

Post by dupp » 03 Oct 2018, 14:59

Amazing, works like a charm! thanks!

Post Reply