elenasto
elenasto

Reputation: 23

Make job run at end of all others with HTC condor

I have a dag file for HTC condor with a few hundred jobs. I want to add one more job/node to the dag, but with the condition that it should run after all the others are done. I have tried doing setting it as the child of all jobs, but if one of the other jobs fail this job doesn't run.

Is there a way to make this job run at the end, but without caring about the success or failure of other jobs?

Thanks a lot for your help.

Upvotes: 1

Views: 398

Answers (2)

Nickolai Belakovski
Nickolai Belakovski

Reputation: 1

I'm quite late to this party but I think the DAG command you're looking for is FINAL. Not sure if that existed in 2017, but it does now.

Upvotes: 0

jpatton
jpatton

Reputation: 403

For the parent nodes that have jobs that could possibly fail, you could add a POST script that always succeeds (returns exit code 0). This marks the node successful and the DAG will continue executing.

See this part of the manual for more info http://research.cs.wisc.edu/htcondor/manual/current/2_10DAGMan_Applications.html#SECTION003102400000000000000

Upvotes: 1

Related Questions