Skip to content

Commit

Permalink
when we hit stop all activity, we should also stop all experiment pro…
Browse files Browse the repository at this point in the history
…files running
  • Loading branch information
CamDavidsonPilon committed Apr 3, 2024
1 parent 99a9c79 commit 765126b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion views.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,11 @@ def stop_all_in_experiment(experiment_id):
)

units = sum([("--units", w["pioreactor_unit"]) for w in workers], ())

background_tasks.pios("kill", "--all-jobs", *units)

# also kill any jobs running on leader (this unit) that are associated to the experiment (like a profile)
background_tasks.pio("kill", "--experiment", experiment_id)

return Response(status=202)


Expand Down

0 comments on commit 765126b

Please sign in to comment.