-
Notifications
You must be signed in to change notification settings - Fork 93
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
duplicate output messages #6056
Comments
We could catch your retro example, but the general solution gets tricky because the message side of the mapping can accept patterns e.g: [runtime]
[[task]]
[[[outputs]]]
x = foo .*
y = .* bar Beyond exhaustively checking whether there is some message that could satisfy both it would be hard to defend against this. Although it wasn't the intended usage, it could kinda be argued that it's valid for a single message to map onto multiple outputs e.g something like: script = """
cylc message -- data x, y, z written
"""
[[[outputs]]]
x = data .*x.* written
y = data .*y.* written
z = data .*z.* written Surprisingly, there don't presently appear to be any uses of custom outputs at our site, so no pre-existing use cases to constrain us. Could go either way. |
That's news to me, which had me doubting my sanity, but from a quick look it doesn't seem to be true It's a good idea though. I like your x, y, z example. But probably not useful without pattern matching? Suggest:
|
I'm not sure where I got that impression from, I thought this was something we had! In no rush to go about implementing message patterns, however, I expect they could be useful for |
While testing #6046 I noticed we can assign the same output message to different triggers:
This ⏫ does the right thing and completes both outputs, but I'm pretty sure it would be a mistake if found in the wild.
You might want to add the fix into #6046 @oliver-sanders ?
The text was updated successfully, but these errors were encountered: