Prevent jobs from overrunning a maintenance window

We run CryoSPARC on a cluster that uses SLURM. When I upgrade CryoSPARC I need there to be no CryoSPARC jobs running during the upgrade. I would like to be able to prevent the submission of jobs that would overrun my maintenance window. But I still want people to be able to submit jobs that would finish before it.

It seems there is no way to do this with a SLURM reservation. I only want to prevent CryoSPARC jobs from overrunning the maintenance window, and not other jobs. It would be great if there were a way to do this in CryoSPARC. (Perhaps by temporarily disabling lanes with long time requests?)