alab_management.experiment_reopen module

alab_management.experiment_reopen module#

Reopen a cancelled/errored experiment from a chosen task (checkpoint resume).

force_update_status(task_view, task_id, status)[source]#

Bypass sticky CANCELLED guard — reopen API only.

Return type:

None

record_cascade_snapshot(task_view, task_id)[source]#

Store downstream prev_tasks/samples before cascade cancel (call from update_status).

Return type:

None

reopen_experiment_from_checkpoint(exp_id, *, task_id, resume_from=None, sample_positions=None, arm_home_confirmed=False, continue_downstream=True)[source]#

Reopen task_id on experiment exp_id so TaskManager can run it again.

Parameters:
  • exp_id (ObjectId) – Experiment ObjectId.

  • task_id (ObjectId) – Task to re-queue (typically the failed sub-task).

  • resume_from (Optional[str]) – Optional phase name stored into task parameters (leaf modular_phase).

  • sample_positions (Optional[dict[str, str | None]]) – Map of sample name → position to apply before resume.

  • arm_home_confirmed (bool) – Required True; server does not jog the arm.

  • continue_downstream (bool) – If True, restore cascade-cancelled next_tasks to WAITING.

Return type:

dict[str, Any]