-
-
Notifications
You must be signed in to change notification settings - Fork 142
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generalise submission and cancellation arguments #641
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks fine to me! I do wonder if we should expose cancel_command
as a keyword argument on the SLURMCluster
and pass that down to SLURMJob
, in case users want to override it with something else.
I found that the HTCondor class already had something similar. I've added this to the base I've reworked the |
dask_jobqueue/lsf.py
Outdated
@@ -54,6 +55,28 @@ def __init__( | |||
use_stdin = dask.config.get("jobqueue.%s.use-stdin" % self.config_name) | |||
self.use_stdin = use_stdin | |||
|
|||
if self.submit_command_extra is None: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is all this code both in the Core class and the class inheriting it?
Also, the test failures in slurm (and maybe others) looks related to this change. |
CI is now mostly happy on |
Sorry for the long lead time on this, everyone. I got myself tripped up between the methods on the base and inheriting classes - as noted by @guillaumeeb's comment. I believe I've got this all sorted now. Hopefully the CI will catch any lingering issues. |
Thanks @AlecThomson! Looks like there are some linting issues (make sure you run |
Hmm - looks like some kind of timing error on the test. I don't quite understand why it's failing... 🤔
https://github.com/dask/dask-jobqueue/actions/runs/10278490598/job/28450471395#step:7:425 |
It is calling Note: We don't use |
Closes #640