I think you want the *kill_invalid_depend* schedulerParameter to have
slurmctld automatically clean up jobs that can never run owing to
unsatisfiable dependencies.

On Aug 11, 2017 3:58 PM, "Alex Reynolds" <[email protected]> wrote:

> Say I submit a job via `sbatch`. Slurm gives it a job ID of `12345`
>
> I then submit two more jobs. The first job runs with the option
> `--dependency:afterok:12345`. The second job runs with the option
> `--dependency:afternotok:12345`.
>
> Those two jobs wait for the first to finish.
>
> The parent job `12345` finishes successfully.
>
> Does the monitor job with the option `--dependency:afternotok:12345` hang
> around in the cluster queue? Or does it get cleared out?
>
> Accordingly, say job `12345` finishes with a non-zero error.
>
> Does the monitor job with the option `--dependency:afterok:12345` stay in
> the queue, or get removed?
>
> Thanks!
>
> -Alex
>

Reply via email to