Skip to content

job_extra, extra and env_extra naming could be improved #323

Closed

Description

@lesteve
  • job_extra -> job_header_extra
  • 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.

Activity

  1. guillaumeeb commented on Aug 25, 2019

    @guillaumeeb
    Member

    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_extra is called prologue, https://github.com/jupyterhub/batchspawner/blob/master/batchspawner/batchspawner.py#L507.

  2. mrocklin commented on Aug 26, 2019

    @mrocklin
    Member

    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.

  3. lesteve commented on Aug 26, 2019

    @lesteve
    MemberAuthor

    This seems another candidate for breaking API changes, we have both mem and memory in LSFCluster:
    #205

  4. added this to the milestone on Dec 1, 2019
  5. changed the title [-]job_extra and env_extra naming could be improved[/-] [+]job_extra, extra and env_extra naming could be improved[/+] on Dec 2, 2019
  6. riedel commented on Sep 24, 2021

    @riedel
    Member

    One could easily have both and add a deprecation warning, so I would argue that there could be coexisting until a major bump.

  7. guillaumeeb commented on Oct 9, 2021

    @guillaumeeb
    Member

    👍

  8. jolange commented on Aug 9, 2022

    @jolange
    Contributor

    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.

  9. guillaumeeb commented on Aug 9, 2022

    @guillaumeeb
    Member

    @jolange :+1 on the FutureWarning if you're willing to implement that!

  10. 8 remaining items

  11. added a commit that references this issue on Aug 12, 2022
    96e39da
  12. guillaumeeb commented on Aug 12, 2022

    @guillaumeeb
    Member

    Before I forget what people think about job_extra_directives?

  13. riedel commented on Aug 12, 2022

    @riedel
    Member

    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.

  14. jolange commented on Aug 15, 2022

    @jolange
    Contributor

    I personally would have left it unchanged, but if you both think job_extra_directives adds clarity, I can take care of that.

  15. guillaumeeb commented on Aug 15, 2022

    @guillaumeeb
    Member

    I'm in favor of this change too.

    @jacobtomlinson if you're around, or maybe @andersy005 or @willirath, what do you think?

  16. jacobtomlinson commented on Aug 16, 2022

    @jacobtomlinson
    Member

    I have no strong feelings here, but I don't have much experience with htcondor so maybe that's why.

  17. guillaumeeb commented on Aug 16, 2022

    @guillaumeeb
    Member

    but I don't have much experience with htcondor so maybe that's why.

    As it would be the same keyword for each queuing system, do you find it adapted to those you may know?

  18. jolange commented on Aug 19, 2022

    @jolange
    Contributor

    I did not see any objection to job_extra_directives, so I assume I can move on with it?

  19. guillaumeeb commented on Aug 19, 2022

    @guillaumeeb
    Member

    That would be really nice!

  20. added a commit that references this issue on Aug 19, 2022
  21. jolange commented on Aug 19, 2022

    @jolange
    Contributor

    When this is done, should I create an issue to remove the deprecated parameters in a future release?

  22. guillaumeeb commented on Aug 19, 2022

    @guillaumeeb
    Member

    Yes please, that would be welcomed!

  23. riedel commented on Aug 23, 2022

    @riedel
    Member

    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.

  24. added a commit that references this issue on Aug 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    all job schedulersenhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions