question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

job_extra, extra and env_extra naming could be improved

See original GitHub issue
  • 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.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:23 (23 by maintainers)

github_iconTop GitHub Comments

2reactions
jolangecommented, 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.

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.

1reaction
jolangecommented, Aug 19, 2022

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

Python logging with context - Stack Overflow
It is used to add additional context to log records—in this case, the account name. You can use context passed via extra in...
Read more >
Troubleshooting - Puppet
Improving job performance by caching Git repositories. Users with large Git repositories can enable Git repository caching in order to improve job performance....
Read more >
Nearly 70% of Americans are looking for extra work to combat ...
Americans are taking extra hours or re-thinking their jobs entirely as daily costs surge.
Read more >
How to pass extra variables to an Ansible playbook - Red Hat
The following use cases explain how you can use extra variables to add flexibility to your Ansible playbooks. Hard-coding hosts is a bad...
Read more >
12 tips for naming your LLC or corporation - Wolters Kluwer
This name must meet the state's business entity naming requirements for LLCs and corporations. 2. You can have one legal name but more...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found