CONFIG job_dagman_rm.config
NODE_STATUS_FILE job_dagman_rm.status

# This node initializes things (removes files that need to be removed,
# etc.).
Job NodeA job_dagman_rm-nodeA.cmd

# This node will wait in the PRE script.
Job NodeB /dev/null NOOP
Script Pre NodeB ./job_dagman_rm-wait.pl job_dagman_rm-NodeB-pre
Parent NodeA Child NodeB

# This node will wait in the POST script.
Job NodeC /dev/null NOOP
Script Post NodeC ./job_dagman_rm-wait.pl job_dagman_rm-NodeC-post
Parent NodeA Child NodeC

# This node will wait in the job.
Job NodeD job_dagman_rm-nodeD.cmd
Parent NodeA Child NodeD

# This node will wait for NodeB, NodeC, and NodeD to get into the
# right state.
Job NodeE job_dagman_rm-nodeE.cmd
Parent NodeA Child NodeE

# This node will condor_rm the parent DAGMan job once the other nodes
# are in the right state.
Job NodeF job_dagman_rm-nodeF.cmd
Parent NodeE Child NodeF
# Make sure this gets submitted before Z nodes.
Priority NodeF 10

# DAGMan should get condor_rm'ed while we're in the middle of
# submitting these jobs.
Job NodeZ00 job_dagman_rm-nodeZ.cmd
Job NodeZ01 job_dagman_rm-nodeZ.cmd
Job NodeZ02 job_dagman_rm-nodeZ.cmd
Job NodeZ03 job_dagman_rm-nodeZ.cmd
Job NodeZ04 job_dagman_rm-nodeZ.cmd
Job NodeZ05 job_dagman_rm-nodeZ.cmd
Job NodeZ06 job_dagman_rm-nodeZ.cmd
Job NodeZ07 job_dagman_rm-nodeZ.cmd
Job NodeZ08 job_dagman_rm-nodeZ.cmd
Job NodeZ09 job_dagman_rm-nodeZ.cmd
Parent NodeE Child NodeZ00 NodeZ01 NodeZ02 NodeZ03 NodeZ04 NodeZ05 NodeZ06 NodeZ07 NodeZ08 NodeZ09
