Skip to content
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

Merged
merged 5 commits into from
Sep 15, 2022
Merged

Execution model fields #1164

merged 5 commits into from
Sep 15, 2022

Conversation

katrogan
Copy link
Contributor

Signed-off-by: Katrina Rogan katroganGH@gmail.com

TL;DR

Updates ExecutionClosure with optional AbortMetadata and ExecutionMetadata with the complete set of fields

Type

  • Bug Fix
  • Feature
  • Plugin

Are all requirements met?

  • Code completed
  • Smoke tested
  • Unit tests added
  • Code documentation added
  • Any pending items have an associated Issue

Complete description

User requested feature

Tracking Issue

flyteorg/flyte#2881

Follow-up issue

NA

Signed-off-by: Katrina Rogan <katroganGH@gmail.com>
Signed-off-by: Katrina Rogan <katroganGH@gmail.com>
Signed-off-by: Katrina Rogan <katroganGH@gmail.com>
Signed-off-by: Katrina Rogan <katroganGH@gmail.com>
wild-endeavor
wild-endeavor previously approved these changes Sep 15, 2022
Copy link
Contributor

@wild-endeavor wild-endeavor left a 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

return _execution_pb2.SystemMetadata(execution_cluster=self.execution_cluster)

@classmethod
def from_flyte_idl(cls, pb2_object) -> SystemMetadata:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
def from_flyte_idl(cls, pb2_object) -> SystemMetadata:
def from_flyte_idl(cls, pb2_object: flyteidl.admin.execution_pb2.SystemMetadata) -> SystemMetadata:

@classmethod
def from_flyte_idl(cls, pb2_object) -> SystemMetadata:
"""
:param flyteidl.admin.execution_pb2.SystemMetadata pb2_object:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

kill

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

copy pasta, thanks

mode: int,
principal: str,
nesting: int,
scheduled_at: datetime.datetime = None,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
scheduled_at: datetime.datetime = None,
scheduled_at: typing.Optional[datetime.datetime] = None,

and the other three?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@codecov
Copy link

codecov bot commented Sep 15, 2022

Codecov Report

Merging #1164 (0118df8) into master (2ccaed7) will increase coverage by 0.01%.
The diff coverage is 63.30%.

@@            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              
Impacted Files Coverage Δ
flytekit/models/execution.py 42.20% <40.29%> (+1.14%) ⬆️
tests/flytekit/unit/models/test_execution.py 100.00% <100.00%> (ø)
tests/flytekit/unit/configuration/test_internal.py 100.00% <0.00%> (ø)
flytekit/configuration/__init__.py 37.45% <0.00%> (+0.72%) ⬆️

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>
@katrogan katrogan merged commit aedcfd4 into master Sep 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants