-
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
Cylc Validate check custom task outputs #3428
Comments
Can add to the |
See also #2979 |
Steps to reproduce problem:
|
Fair play, that is the best severity level I've ever seen 🤣 |
I've just seen in the docs:
which is at odds with this issue. Should I add the literal |
Actually, that's for task messaging alone ( |
@hjoliver what the heck is this |
Sorry, I should have noticed that 😬 |
(Trying to recall what the heck it is!) |
#2410 - implemented for, and heavily used by, BOM. It is a somewhat crude way of triggering event handlers off of "custom" task messages (which are not necessarily registered task outputs used for triggering other tasks). The use case was: task sends a "data availability message" back to the scheduler, which passes it to an event handler for publication to a message broker (that other workflows subscribe to). |
Struggling to recall now, but message priority/severity was probably the easiest way to do this, because it is additional context for the message without having to alter the message itself, that we already handle (for CRITICAL and WARNING messages etc.) and that we already use to to trigger event handlers. (But the existing levels weren't really appropriate for the aforementioned use case). |
... therefore you can use This works:
So in job.out you get:
But, this does not work:
and in the suite log you get:
because it's expecting
|
ProposalIn
In
|
(Note that this feature can be used just for event handling, without associated task outputs for task triggering - as in the use case I mentioned above - but we should make sure it works for both at once of course). In the current implementation:
So if you want to trigger event handlers off of several different kinds of events in task, you would have to handle them all with the custom event (i.e. a single handler would have to triage all the different events and decide what to do with them). Given that severity logging works for any For the minimal fix, to answer your questions above:
|
Cylc message triggers can not have a colon in them unless it is a valid severity level eg. warning.
We should check to ensure that the trigger is valid.
The text was updated successfully, but these errors were encountered: