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
feat(sdk): add local execution skeleton #localexecution #10292
feat(sdk): add local execution skeleton #localexecution #10292
Conversation
Skipping CI for Draft Pull Request. |
0e0f3f0
to
0552bae
Compare
/assign @chensun |
0552bae
to
94cc3a0
Compare
if self.state == TaskState.FINAL: | ||
raise Exception( | ||
custom_message or | ||
f"Task configuration methods are not supported for local execution. Got call to '.{method_name}()'." |
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.
@chensun, I tend to think having an error message that is specific to local-execution is helpful for the user since that's the only case when a task will be FINAL
, but please let me know if you prefer we make the error message less specific.
Also, preferring the general Exception
to NotImplementedError
, which doesn't seem to fit based on its description.
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.
SGTM
94cc3a0
to
71f36f9
Compare
@connor-mccarthy: The following test failed, say
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed 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.
/lgtm
/approve
Thanks!
if self.state == TaskState.FINAL: | ||
raise Exception( | ||
custom_message or | ||
f"Task configuration methods are not supported for local execution. Got call to '.{method_name}()'." |
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.
SGTM
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: chensun The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
Description of your changes:
Local execution PR 2.
Adds the skeleton code for invoking local execution (behind a feature flag).
If a component is called outside of a pipeline, it will be executed by
task_dispatcher.run_single_component
. ThePipelineTask
has handling for local execution.Checklist: