salloc, sattach, sbcast, sdiag, sprio, sshare, strigger, sview, sh5util, scrun, scrontab: add pages (#11651)
2023-12-18 23:53:21 +01:00
|
|
|
# strigger
|
|
|
|
|
|
|
|
> View or modify Slurm trigger information.
|
2024-02-14 17:25:13 -03:00
|
|
|
> Triggers are actions that are automatically run when an event occurs on a Slurm cluster.
|
salloc, sattach, sbcast, sdiag, sprio, sshare, strigger, sview, sh5util, scrun, scrontab: add pages (#11651)
2023-12-18 23:53:21 +01:00
|
|
|
> More information: <https://slurm.schedmd.com/strigger.html>.
|
|
|
|
|
|
|
|
- Register a new trigger. Execute the specified program when the specified event occurs:
|
|
|
|
|
2025-04-20 00:21:53 +03:00
|
|
|
`strigger --set --{{primary_database_failure|primary_slurmdbd_failure|primary_slurmctld_acct_buffer_full|primary_slurmctld_failure|...}} {{[-p|--program]}} {{path/to/executable}}`
|
salloc, sattach, sbcast, sdiag, sprio, sshare, strigger, sview, sh5util, scrun, scrontab: add pages (#11651)
2023-12-18 23:53:21 +01:00
|
|
|
|
|
|
|
- Execute the specified program when the specified job terminated:
|
|
|
|
|
2025-04-20 00:21:53 +03:00
|
|
|
`strigger --set {{[-j|--jobid]}} {{job_id}} {{[-f|--fini]}} {{[-p|--program]}} "{{path/to/executable}} {{argument1 argument2 ...}}"`
|
salloc, sattach, sbcast, sdiag, sprio, sshare, strigger, sview, sh5util, scrun, scrontab: add pages (#11651)
2023-12-18 23:53:21 +01:00
|
|
|
|
|
|
|
- View active triggers:
|
|
|
|
|
|
|
|
`strigger --get`
|
|
|
|
|
|
|
|
- View active triggers regarding the specified job:
|
|
|
|
|
2025-04-20 00:21:53 +03:00
|
|
|
`strigger --get {{[-j|--jobid]}} {{job_id}}`
|
salloc, sattach, sbcast, sdiag, sprio, sshare, strigger, sview, sh5util, scrun, scrontab: add pages (#11651)
2023-12-18 23:53:21 +01:00
|
|
|
|
|
|
|
- Clear the specified trigger:
|
|
|
|
|
|
|
|
`strigger --clear {{trigger_id}}`
|