alab_management.experiment_cancel module#
Cancel one experiment and free only that experiment’s software bookings.
This is the dashboard Cancel button. It force-cancels that experiment’s live tasks (the same write Release locks & tasks uses, scoped to this experiment), dismisses its user-input prompts, cancels its pending resource requests, releases its devices and positions, and marks the experiment Cancelled.
When mongodb_completed is configured, it then archives the experiment (and
its samples/tasks) into the completed database — the same copy step the
experiment manager runs when it marks an experiment finished.
It does not emergency-stop hardware that is already moving, and it does not touch other experiments. Use Release locks & tasks when the whole lab is stuck.