-
Notifications
You must be signed in to change notification settings - Fork 297
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
Execution model fields #1164
Execution model fields #1164
Conversation
Signed-off-by: Katrina Rogan <katroganGH@gmail.com>
Signed-off-by: Katrina Rogan <katroganGH@gmail.com>
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.
nits, if you want to fix them
flytekit/models/execution.py
Outdated
return _execution_pb2.SystemMetadata(execution_cluster=self.execution_cluster) | ||
|
||
@classmethod | ||
def from_flyte_idl(cls, pb2_object) -> SystemMetadata: |
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.
def from_flyte_idl(cls, pb2_object) -> SystemMetadata: | |
def from_flyte_idl(cls, pb2_object: flyteidl.admin.execution_pb2.SystemMetadata) -> SystemMetadata: |
flytekit/models/execution.py
Outdated
@classmethod | ||
def from_flyte_idl(cls, pb2_object) -> SystemMetadata: | ||
""" | ||
:param flyteidl.admin.execution_pb2.SystemMetadata pb2_object: |
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.
kill
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.
copy pasta, thanks
flytekit/models/execution.py
Outdated
mode: int, | ||
principal: str, | ||
nesting: int, | ||
scheduled_at: datetime.datetime = None, |
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.
scheduled_at: datetime.datetime = None, | |
scheduled_at: typing.Optional[datetime.datetime] = None, |
and the other three?
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.
done
Codecov Report
@@ Coverage Diff @@
## master #1164 +/- ##
==========================================
+ Coverage 68.51% 68.52% +0.01%
==========================================
Files 288 288
Lines 26085 26192 +107
Branches 2918 2924 +6
==========================================
+ Hits 17871 17947 +76
- Misses 7735 7766 +31
Partials 479 479
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
Signed-off-by: Katrina Rogan katroganGH@gmail.com
TL;DR
Updates ExecutionClosure with optional AbortMetadata and ExecutionMetadata with the complete set of fields
Type
Are all requirements met?
Complete description
User requested feature
Tracking Issue
flyteorg/flyte#2881
Follow-up issue
NA