You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
job_extra, extra and env_extra naming could be improved #323
env_extra -> job_script_extra? Not great, better suggestions welcome! Not sure if there is a good way to indicate that this is something which is at the beginning of the script but after the shebang and job header (and before we run dask-worker).
extra -> dask_worker_additional_args, better suggestion welcome!
We may want to want to warn for a few releases and point to the new name parameter names, same thing for values from the config job-extra and env-extra if they are used.
We can always make a choice to break many APIs, and announce a major version bump.
Most dask-jobqueue users today are early adopters, and would probably be tolerant of such an action. It might be worth thinking about what other API changes we might want to make.
I'd like to give this a shot soon, because I'm eager to have possible changes included in the next release.
One could easily have both and add a deprecation warning, so I would argue that there could be coexisting until a major bump.
@riedel I agree, but to my understanding, a FutureWarning would be better suited. In the used terminology, I think we want to warn "end users", not only "other developers".
If I add a DeprecationWarning in Job and run a script instantiating a *Cluster, the warning will be suppressed by default.
See also below this table:
Changed in version 3.7: Previously DeprecationWarning and FutureWarning were distinguished based on whether a feature was being removed entirely or changing its behaviour. They are now distinguished based on their intended audience and the way they’re handled by the default warnings filters.
Reacted by Mike DePalatis and Guillaume Eynard-Bontemps
Before I forget what people think about job_extra_directives?
I at least like this name best among the proposed ones. I think even htcondor users can abstract from “commands” to “directives”. It would remove the last bit of ambiguity, I guess. If @jolange has a run, why not ;) Thx btw.
Just as a general comment regarding the new job_script_prologue. I just now had a problem with slurm prologs and I was really surprised to see how many different variants of prologues there are: https://slurm.schedmd.com/prolog_epilog.html. It all boils down to good documentation in the end, I guess. However, I just now realized how important it was to have "script" in the name. Should be fine.
Activity
guillaumeeb commentedon Aug 25, 2019
I agree that the naming is not ideal, but do we really want to modify it? I'm not sure...
That said, that's not a strong opposition.
In batchspawner,
env_extrais calledprologue, https://github.com/jupyterhub/batchspawner/blob/master/batchspawner/batchspawner.py#L507.mrocklin commentedon Aug 26, 2019
We can always make a choice to break many APIs, and announce a major version bump.
Most dask-jobqueue users today are early adopters, and would probably be tolerant of such an action. It might be worth thinking about what other API changes we might want to make.
lesteve commentedon Aug 26, 2019
This seems another candidate for breaking API changes, we have both
memandmemoryinLSFCluster:#205
[-]job_extra and env_extra naming could be improved[/-][+]job_extra, extra and env_extra naming could be improved[/+]riedel commentedon Sep 24, 2021
One could easily have both and add a deprecation warning, so I would argue that there could be coexisting until a major bump.
guillaumeeb commentedon Oct 9, 2021
👍
fix behaviour of `env_extra` for HTCondor
Fix behaviour of `env_extra` for HTCondor (#563)
Fix behaviour of `env_extra` for HTCondor (dask#563)
Use `--nworkers` in stead of deprecated `--nprocs` in the generated j…
jolange commentedon Aug 9, 2022
I'd like to give this a shot soon, because I'm eager to have possible changes included in the next release.
@riedel I agree, but to my understanding, a FutureWarning would be better suited. In the used terminology, I think we want to warn "end users", not only "other developers".
If I add a
DeprecationWarninginJoband run a script instantiating a*Cluster, the warning will be suppressed by default.See also below this table:
guillaumeeb commentedon Aug 9, 2022
@jolange :+1 on the
FutureWarningif you're willing to implement that!8 remaining items
Rename `extra` (#576)
guillaumeeb commentedon Aug 12, 2022
Before I forget what people think about job_extra_directives?
riedel commentedon Aug 12, 2022
I at least like this name best among the proposed ones. I think even htcondor users can abstract from “commands” to “directives”. It would remove the last bit of ambiguity, I guess. If @jolange has a run, why not ;) Thx btw.
jolange commentedon Aug 15, 2022
I personally would have left it unchanged, but if you both think
job_extra_directivesadds clarity, I can take care of that.guillaumeeb commentedon Aug 15, 2022
I'm in favor of this change too.
@jacobtomlinson if you're around, or maybe @andersy005 or @willirath, what do you think?
jacobtomlinson commentedon Aug 16, 2022
I have no strong feelings here, but I don't have much experience with htcondor so maybe that's why.
guillaumeeb commentedon Aug 16, 2022
As it would be the same keyword for each queuing system, do you find it adapted to those you may know?
jolange commentedon Aug 19, 2022
I did not see any objection to
job_extra_directives, so I assume I can move on with it?guillaumeeb commentedon Aug 19, 2022
That would be really nice!
test deprecation
jolange commentedon Aug 19, 2022
When this is done, should I create an issue to remove the deprecated parameters in a future release?
guillaumeeb commentedon Aug 19, 2022
Yes please, that would be welcomed!
riedel commentedon Aug 23, 2022
Just as a general comment regarding the new
job_script_prologue. I just now had a problem with slurm prologs and I was really surprised to see how many different variants of prologues there are: https://slurm.schedmd.com/prolog_epilog.html. It all boils down to good documentation in the end, I guess. However, I just now realized how important it was to have "script" in the name. Should be fine.rename `job_extra` (#577)