Final Flow/Task State Warning #19691
Replies: 14 comments
-
|
One thought that perhaps helps to get my understanding of the warning state better:
|
Beta Was this translation helpful? Give feedback.
-
|
@toro-berlin and @jakekaplan I am interested in contributing to this. Let me know if I can start on this or not. |
Beta Was this translation helpful? Give feedback.
-
|
I'd like this feature too, our use-case is for |
Beta Was this translation helpful? Give feedback.
-
|
Hey @Ishankoradia , I am not working on that. But I suggest waiting for a go from the Prefect side. |
Beta Was this translation helpful? Give feedback.
-
|
Yup, will do that. Thanks @toro-berlin |
Beta Was this translation helpful? Give feedback.
-
|
@jakekaplan any word on this from your team ? |
Beta Was this translation helpful? Give feedback.
-
|
Apologies for the delayed response! At this time I don't think we would accept a contribution for a brand new state. However, I think you can accomplish what you want with a custom state name: I'm using |
Beta Was this translation helpful? Give feedback.
-
|
Thank you I'll try this |
Beta Was this translation helpful? Give feedback.
-
|
Thanks for the idea, sounds like a great way to handle for the moment. |
Beta Was this translation helpful? Give feedback.
-
|
Thanks @jakekaplan , this definitely helps. So much less work now to handle the |
Beta Was this translation helpful? Give feedback.
-
Hey @jakekaplan - one issue I'm running into with this solution is that crashed tasks don't seem to trigger downstream dependencies, so I can't have something finish in a "warn" state when I'd want it to trigger the next task. Any ideas on how to approach that? My flow looks something like this, where I'd want the tasks to have a special case warning state if some of the upserts failed but there wasn't an error with the code execution or something like that |
Beta Was this translation helpful? Give feedback.
-
|
@kyletl it depends on what behavior you're looking for. It sounds like you may want a named |
Beta Was this translation helpful? Give feedback.
-
|
@jakekaplan I ended up just using failed. What I really want is the orange color in the execution graph so that it's obvious from a glance that a special case was triggered but the task itself didn't fail. |
Beta Was this translation helpful? Give feedback.
-
|
Hi, this is also a major issue for us; it would be really helpful if we could encode and display completed states that are some spectrum between successful and failed (for example, partially failed, no-op, etc). Otherwise, a lot of key information is lost to viewers of the DAG. As a (quite hacky) workaround, I noticed that in prefect/src/prefect/utilities/engine.py Line 272 in 42dcb00 is_completed() or is_failed(), but if one overrides is_completed() to True then the graph continues to evaluate, and then intermediate nodes can be displayed with the Cancelled & Crashed (and probably others) state colors on the UI:
Obviously we would prefer an official solution, but it seems like this workaround would be enough for us (and hopefully others on this thread) to get by for the time being. |
Beta Was this translation helpful? Give feedback.



Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
First check
Prefect Version
2.x
Describe the current behavior
Situation: During a flow/task run, something suspicious happens that is no failure (code exception) or crash (infrastructure problem) but has to be reported and recognized by the operator.
Currently, as a flow developer, I cannot visually get the attention of the flow operator for a flow/task after execution and its warning message.
Example:
Describe the proposed behavior
We want to return a warning state that can be caught and checked on.
Behavior:
Example Use
Additional context
A different approach to get nearer to what I want is: Make retries applicable only to a subset of exceptions (#7576) to use an error state with a custom name.
But that will not expose the Warning State to the Cloud UI as a dedicated state, so it is not filterable etc...
Beta Was this translation helpful? Give feedback.
All reactions