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

main loop: plugins for periodic functions #3492

Merged
merged 19 commits into from
Apr 7, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion cylc/flow/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
import logging


LOG = logging.getLogger('cylc') # Acceptable?
CYLC_LOG = 'cylc'
LOG = logging.getLogger(CYLC_LOG)
LOG.addHandler(logging.NullHandler()) # Start with a null handler


Expand Down
10 changes: 9 additions & 1 deletion cylc/flow/cfgspec/globalcfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@
# suite
'cylc': {
'UTC mode': [VDR.V_BOOLEAN],
'health check interval': [VDR.V_INTERVAL, DurationFloat(600)],
'task event mail interval': [VDR.V_INTERVAL, DurationFloat(300)],
'events': {
'handlers': [VDR.V_STRING_LIST],
Expand All @@ -67,6 +66,15 @@
'abort on inactivity': [VDR.V_BOOLEAN],
'abort on stalled': [VDR.V_BOOLEAN],
},
'main loop': {
'plugins': [VDR.V_STRING_LIST, ['health check']],
'health check': {
'interval': [VDR.V_INTERVAL, DurationFloat(600)]
},
'__MANY__': {
'interval': [VDR.V_INTERVAL]
}
}
},

# suite
Expand Down
9 changes: 8 additions & 1 deletion cylc/flow/cfgspec/suite.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,13 @@
VDR.V_STRING, '', 'live', 'dummy', 'dummy-local', 'simulation'],
'force run mode': [
VDR.V_STRING, '', 'live', 'dummy', 'dummy-local', 'simulation'],
'health check interval': [VDR.V_INTERVAL],
'task event mail interval': [VDR.V_INTERVAL],
'disable automatic shutdown': [VDR.V_BOOLEAN],
'main loop': {
'__MANY__': {
'interval': [VDR.V_INTERVAL],
}
},
'simulation': {
'disable suite event handlers': [VDR.V_BOOLEAN, True],
},
Expand Down Expand Up @@ -300,6 +304,9 @@ def upg(cfg, descr):
u.obsolete(
'8.0.0',
['cylc', 'reference test', 'suite shutdown event handler'])
u.obsolete(
'8.0.0',
['cylc', 'health check interval'])
u.deprecate(
'8.0.0',
['cylc', 'abort if any task fails'],
Expand Down
Loading