Page 1 of 1

resolving job names after submit

Posted: Wed Jun 21, 2017 5:23 pm
by keyframe
Is it possible to resolve the job name once a job has been submitted? Alternatively, is it possible to have dependency masks that are not strings (job id, or something of that nature)?

In Houdini we often build a reusable network of dependencies to execute on the farm. if we resubmit the network before deleting the previous one, the dependency mask regex strings will be satisfied based on the (previously) finished job.

We could hash a number to each job string, but it feels... icky.

Thoughts?

Best,

G

Re: resolving job names after submit

Posted: Wed Jun 21, 2017 5:43 pm
by timurhai
Hi.
Depend masks are regular expressions.
You can set it to "jobname.*" to wait all "jobname-1", "jobname-2", ...
We use it this way in Houdini.

Re: resolving job names after submit

Posted: Wed Jun 21, 2017 5:54 pm
by keyframe
I hear you -- but it does introduce a strange condition.

job1.name = "job1"
job1.block1.name = "foo"
job1.block2.name = "bar"
job1.block2.dependMask = "foo*"

job2.name = "job1-1"
job2.block1.name = "foo"
job2.block2.name = "bar"
job2.block2.dependMask = "foo*"

if both jobs are running at the same time (like a wedge job for example), wouldn't job2.block2 be cleared to run once job1.block2 finishes?

G

Re: resolving job names after submit

Posted: Wed Jun 21, 2017 5:59 pm
by timurhai
Block can wait other block(s) only of the same job.