Skip to content
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

auto restart plugin issues #4873

Closed
dpmatthews opened this issue May 13, 2022 · 1 comment · Fixed by #4904
Closed

auto restart plugin issues #4873

dpmatthews opened this issue May 13, 2022 · 1 comment · Fixed by #4904
Assignees
Labels
bug Something is wrong :( doc Documentation small
Milestone

Comments

@dpmatthews
Copy link
Contributor

There are several problems with the auto restart main loop plugin:

  1. It's default interval is not documented. True of other plugins as well (only health check and reset bad hosts are documented).

  2. The default interval is every main loop! At Cylc 7 I think it was part of the health check (i.e. every PT10M by default).

  3. If you modify your global config to contain an invalid setting (after workflow startup) you get a traceback in the workflow log each time the plugin is run.

  4. It's not enabled by default (because it's fairly heavyweight). However, there is no mention of this in the documentation for [scheduler]auto restart delay, [scheduler][run hosts]condemned or [scheduler][run hosts]available; nor in the section on Workflow Migration.

@dpmatthews dpmatthews added the bug Something is wrong :( label May 13, 2022
@dpmatthews dpmatthews added this to the cylc-8.0rc4 milestone May 13, 2022
@oliver-sanders oliver-sanders self-assigned this May 13, 2022
@oliver-sanders
Copy link
Member

you get a traceback in the workflow log each time the plugin is run.

The issue here being the "traceback" part not the "each time the plugin is run".

@oliver-sanders oliver-sanders added small doc Documentation labels May 13, 2022
oliver-sanders added a commit to oliver-sanders/cylc-flow that referenced this issue Jun 6, 2022
* Addresses cylc#4873
* There is now a default main loop plugin interval of `PT10M`.
  This prevents any plugins without a hardcoded default from being run
  with every main loop cycle.
* Explicitly set a default for the `auto restart` plugin (also `PT10M`).
* Added a note on enabling plugins.
* Suppress traceback from reloading the global config in the `auto restart`
  plugin. This is now logged nicely.
* Prevent plugins from being loaded twice when specified both on the CLI
  (--main-loop) and in the config (global.cylc[scheduler][main loop]plugins).
oliver-sanders added a commit to oliver-sanders/cylc-doc that referenced this issue Jun 6, 2022
datamel pushed a commit that referenced this issue Jun 14, 2022
* main loop: improve defaults, docs and error handling

* Addresses #4873
* There is now a default main loop plugin interval of `PT10M`.
  This prevents any plugins without a hardcoded default from being run
  with every main loop cycle.
* Explicitly set a default for the `auto restart` plugin (also `PT10M`).
* Added a note on enabling plugins.
* Suppress traceback from reloading the global config in the `auto restart`
  plugin. This is now logged nicely.
* Prevent plugins from being loaded twice when specified both on the CLI
  (--main-loop) and in the config (global.cylc[scheduler][main loop]plugins).

* Apply suggestions from code review

Co-authored-by: Hilary James Oliver <hilary.j.oliver@gmail.com>

Co-authored-by: Hilary James Oliver <hilary.j.oliver@gmail.com>
@hjoliver hjoliver modified the milestones: cylc-8.0rc4, cylc-8.0.0 Jul 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is wrong :( doc Documentation small
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants