-
Notifications
You must be signed in to change notification settings - Fork 90
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
Command to extract task prerequisites #2147
Comments
|
I thought I knew what you meant, but I thought I would test it out with a simple example
It is interesting that we already have A slightly longer term fix is to re-factor the internal representation of the conditional triggers? E.g.: |
Related to #1346? |
Yes and yes. I'll take a shot at the short term fix... |
I created a branch whilst looking at #1346 which might satisfy the short term fix for this issue. https://github.com/oliver-sanders/cylc/tree/1346.make-conditional-labels-more-user-friendly Before
After
Otherwise we could do something like this (as suggested in #1346 (comment)):
|
@oliver-sanders - thanks, another one I didn't get time to follow through on 😬 Your result looks good, but I wonder if we could have the second too as an option because it is probably easier to understand in the case of long family triggers etc.? |
Actually you've solved #1346. This issue arose from a request for something even simpler: a list of upstream tasks that the given task depends on, regardless of the form of the dependence. So:
(or perhaps with ':succeeded' etc. appended to each). |
Long family triggers with datetime cycling will definitely use a lot of horizontal space so this is probably the way to go. Should this be optional or the default behaviour? |
IMO it should be the default, because it is human-readable (without scrolling) even for long trigger expressions. But the single-line form could be an option. As could my "just the upstream task IDs" as above. Regarding Matt's longer term fix, yeah the internal representation could be improved. The reason for the current for is it's a string that can be eval'd as a Python expression. But that's not ideal, and very verbose. |
(Request from NIWA operations): it would be useful to be able to extract a task's prerequisites as a simple list of tasks rather than (as via
cylc show
now) a formatted string with nasty verbose task name munging to handle conditional triggers.The text was updated successfully, but these errors were encountered: