mockslurm.mock_scancelΒΆ

Implement a mock of the scancel command of slurm.

The jobs to cancel are found by querying the database for job IDs or job names, filtering the jobs that are already completed (return code != default value), then the signal to transmit (default SIGKILL) is send.

Functions

main()