resolving job names after submit

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

resolving job names after submit

Post 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
--
Rocky Linux 8.5, cgru 3.2.1
User avatar
timurhai
Site Admin
Posts: 910
Joined: Sun Jan 15, 2017 8:40 pm
Location: Russia, Korolev
Contact:

Re: resolving job names after submit

Post 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.
Timur Hairulin
CGRU 3.3.1, Ubuntu 20.04, 22.04, MS Windows 10 (clients only).
keyframe
Posts: 62
Joined: Sat Jan 21, 2017 9:43 pm
Location: Toronto

Re: resolving job names after submit

Post 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
--
Rocky Linux 8.5, cgru 3.2.1
User avatar
timurhai
Site Admin
Posts: 910
Joined: Sun Jan 15, 2017 8:40 pm
Location: Russia, Korolev
Contact:

Re: resolving job names after submit

Post by timurhai »

Block can wait other block(s) only of the same job.
Timur Hairulin
CGRU 3.3.1, Ubuntu 20.04, 22.04, MS Windows 10 (clients only).
Post Reply