Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions tools/launcher/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -471,6 +471,11 @@ def run_jobs(
)
task_env.update(default_slurm_env)

# When allow_to_fail is set, use "afterany" so downstream tasks
# run even if a predecessor times out or fails.
if job.allow_to_fail and hasattr(executor, "dependency_type"):
executor.dependency_type = "afterany"

task_instance = run.Script(task.script, args=task_args, env=task_env)
print(f"job {job_name} task {task_id} slurm_config: {task.slurm_config}")

Expand Down
Loading