-
Notifications
You must be signed in to change notification settings - Fork 300
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
Replace Agent State with Agent Phase #2123
Conversation
Signed-off-by: Future-Outlier <[email protected]>
Signed-off-by: Future-Outlier <[email protected]>
…om/flyteorg/flytekit into deprecated-agent-state-agent-phase
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #2123 +/- ##
==========================================
- Coverage 85.79% 85.57% -0.23%
==========================================
Files 313 308 -5
Lines 23628 23113 -515
Branches 3541 3540 -1
==========================================
- Hits 20272 19779 -493
+ Misses 2744 2722 -22
Partials 612 612 ☔ View full report in Codecov by Sentry. |
Signed-off-by: Future-Outlier <[email protected]>
Signed-off-by: Future-Outlier <[email protected]>
Signed-off-by: Future-Outlier <[email protected]>
phase = res.resource.phase | ||
|
||
progress.print(f"Task phase: {TaskExecution.Phase.Name(phase)}, Phase message: {res.resource.message}") | ||
if hasattr(res.resource, "log_links"): |
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.
do we really new hasattr
here?
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.
do we really new
hasattr
here?
will remove it, thank you
Signed-off-by: Future-Outlier <[email protected]>
Signed-off-by: Future-Outlier <[email protected]>
Signed-off-by: Kevin Su <[email protected]>
Signed-off-by: Kevin Su <[email protected]>
Signed-off-by: Kevin Su <[email protected]>
Signed-off-by: Kevin Su <[email protected]>
Signed-off-by: Kevin Su <[email protected]>
Signed-off-by: Kevin Su <[email protected]>
Signed-off-by: Kevin Su <[email protected]>
Tracking issue
Fixes flyteorg/flyte#3936
Why are the changes needed?
State
in webapi and usecore.TaskExecution.Phase
instead to make users less confused.What changes were proposed in this pull request?
https://github.com/flyteorg/flytekit/blob/master/flytekit/extend/backend/base_agent.py#L261-L264
How was this patch tested?
Setup process
--dev
Screenshots
Remote Execution
Local Execution
Check all the applicable boxes
Related PRs
flyteorg/flyte#4738