The current autoresume feature is bonded to timeout. If the job is preempted by slurm, SmartDispatch won't reschedule itself. Slurm can be configured to reschedule preempted jobs, but it might not work with the current implementation of SmartDispatch. We need to verify if a resumed job would correctly respawn workers and assigns commands. If not, we need to adapt base_worker.py and scripts/smartdispatch.