resolving job names after submit

General discussions and questions.
Post Reply
keyframe
Posts: 26
Joined: Sat Jan 21, 2017 9:43 pm

resolving job names after submit

Post by keyframe » Wed Jun 21, 2017 5:23 pm

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
--
centOS 7.4, cgru 2.2.3

User avatar
timurhai
Site Admin
Posts: 368
Joined: Sun Jan 15, 2017 8:40 pm
Location: Russia, Korolev
Contact:

Re: resolving job names after submit

Post by timurhai » Wed Jun 21, 2017 5:43 pm

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.
Timur Hairulin
CGRU 2.3.0 Debian 9, Ubuntu 18.04LTS, MS Windows 7,10 (client only).

keyframe
Posts: 26
Joined: Sat Jan 21, 2017 9:43 pm

Re: resolving job names after submit

Post by keyframe » Wed Jun 21, 2017 5:54 pm

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
--
centOS 7.4, cgru 2.2.3

User avatar
timurhai
Site Admin
Posts: 368
Joined: Sun Jan 15, 2017 8:40 pm
Location: Russia, Korolev
Contact:

Re: resolving job names after submit

Post by timurhai » Wed Jun 21, 2017 5:59 pm

Block can wait other block(s) only of the same job.
Timur Hairulin
CGRU 2.3.0 Debian 9, Ubuntu 18.04LTS, MS Windows 7,10 (client only).

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest