-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Open
Labels
featureIs an improvement or enhancementIs an improvement or enhancementneeds triageWaiting to be triaged by maintainersWaiting to be triaged by maintainers
Description
Description & Motivation
I have to use a requeue-signal other than SIGUSR1 for technical reasons, which is the hard coded default at the moment. While I can use SLURMEnvironment(requeue_signal=signal.SIGUSR2) as a plugin, I would like to only set that in cases where I actually am in a SLURM environment without having to re-implement the environment detection inside of lightning. In other words, I still want to be able to just run my script locally in a LightningEnvironment.
Pitch
I want to move the hard-coded constant here into a class constant, so that I can change it from the outside.
Alternatives
Re-implementing environment detection myself so that I can pass an argument to just the SLURM environment, but that seems like too much work and needless duplication.
Additional context
No response
cc @lantiga
Metadata
Metadata
Assignees
Labels
featureIs an improvement or enhancementIs an improvement or enhancementneeds triageWaiting to be triaged by maintainersWaiting to be triaged by maintainers