SimulateCrash#

class SimulateCrash[source]#

Bases: HookBase

Hard-exit the process after a fixed number of steps to simulate a crash.

Fires only when PIMM_SIMULATE_CRASH_STEP is set, so a run can die deterministically after writing a checkpoint while a later resume of the same config runs to completion. Used to test crash recovery.

after_step()[source]#