-
Notifications
You must be signed in to change notification settings - Fork 301
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
Add task execution metadata to agent create #2282
Add task execution metadata to agent create #2282
Conversation
Signed-off-by: noahjax <[email protected]>
Signed-off-by: noahjax <[email protected]>
Signed-off-by: noahjax <[email protected]>
Signed-off-by: noahjax <[email protected]>
…prefix Signed-off-by: noahjax <[email protected]>
Signed-off-by: noahjax <[email protected]>
f8c8761
to
92a580c
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #2282 +/- ##
==========================================
- Coverage 83.54% 83.53% -0.01%
==========================================
Files 324 324
Lines 24592 24626 +34
Branches 3496 3503 +7
==========================================
+ Hits 20545 20572 +27
- Misses 3419 3427 +8
+ Partials 628 627 -1 ☔ View full report in Codecov by Sentry. |
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.
Hey @noahjax let's discuss here
@pingsutw I'm actually not sure if there is an easy way to add TaskExecutionMetadata here...I don't think I can simply add another arg to AsyncAgentBase without updating all subclasses the way I did for output_prefix. Can we merge this smaller change and followup later on how to add this additional field?
Why do we need to update all subclasses as well for TaskExecutionMetadata? did you see any error?
Yeah, with these changes I see this issue in
|
Signed-off-by: Kevin Su <[email protected]>
Thanks @pingsutw, I'll try to clean up the rest of this |
Signed-off-by: noahjax <[email protected]>
ab7303a
to
2f790da
Compare
Signed-off-by: noahjax <[email protected]> Signed-off-by: Kevin Su <[email protected]> Co-authored-by: Kevin Su <[email protected]> Signed-off-by: Jan Fiedler <[email protected]>
Tracking issue
https://github.com/flyteorg/flyte/issues/
Why are the changes needed?
With the update to flytekit 1.11.0 (specifically this PR) and creation of
AsyncAgentBase
,output_prefix
was removed from thecreate
function for agents. This is problematic for our use case, and in general seems like it is moving things towards less flexible agents.This PR goes a step farther and also adds task execution metadata to agent create, as this information is already readily available in the create task request.
What changes were proposed in this pull request?
Add
output_prefix
andtask_execution_metadata
to AsyncAgentBase create in a backwards compatible way that allows existing agents to continue to ignore these fields.How was this patch tested?
Setup process
Screenshots
Check all the applicable boxes
Related PRs
Docs link