-
Notifications
You must be signed in to change notification settings - Fork 94
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
Include xtrigger function signatures in cylc config
#6071
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Makes sense
- Manually tested as working
No test?
@wxtim added test now 👍 |
def dump(self) -> str: | ||
"""Output for logging.""" | ||
return SubProcContext.__str__(self) | ||
|
||
def __str__(self) -> str: | ||
""" | ||
>>> str(SubFuncContext('label', 'my_func', [1, 2], {'a': 3})) | ||
'my_func(1, 2, a=3):10.0' | ||
""" | ||
return f"{self.get_signature()}:{self.intvl}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The previous __str__()
implementation was removed in #5617 (comment), but I've ensured the output from xtriggers still gets logged in the workflow log by adding a dump
method and using that instead
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That was it! Great.
* upstream/master: (25 commits) Delete public DB if private DB does not exist on scheduler start (cylc#6070) Include xtrigger function signatures in `cylc config` (cylc#6071) Add Nano syntax highlighter (cylc#6072) Play should have no cylc rose options (cylc#6068) tests/integration: address urwid deprecation warning (cylc#6063) Bump dev version Prepare release 8.2.5 add mailmap entry Tutorials: avoid validation errors due to implicit tasks Update CONTRIBUTING.md Update xtrigger_mgr.py documentation Another small tweak. Tweak previous. Tutorials: increase sleep and don't sleep in CI Fix bad doctests tutorial: make the tutorial workflow run a little slower Style tweaks. Simply workflow-state code a bit. Add unit tests for workflow-state. Add to doc string. ...
Closes #5877
Check List
CONTRIBUTING.md
and added my name as a Code Contributor.CHANGES.md
entry included if this is a change that can affect users?.?.x
branch.