-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
[externals] Modify context construction to support direct invocation for SubprocessExecutionResource #15984
Conversation
Current dependencies on/for this PR:
This comment was auto-generated by Graphite. |
@@ -54,8 +55,8 @@ def build_external_execution_context( | |||
_convert_time_window(partition_time_window) if partition_time_window else None | |||
), | |||
run_id=context.run_id, | |||
job_name=context.job_def.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.
how is a BoundOpExecutionContext
getting here in the first place? Shouldn't it always be bound by the time it gets to user space?
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.
Confused by your question, it sounds like it should say "how is an UnboundOpExecutionContext
...
BoundOpExecutionContext
is the name of the passed class as context when directly invoking, it has nothing to do with the externals work.
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.
Yeah I got confused and meant UnboundOpExecutionContext
because it is confusing that we have both BoundOpExecutionContext
and OpExecutionContext
as non-abstract classes
dcdbddf
to
bdc8bea
Compare
Deploy preview for dagster-docs ready! Preview available at https://dagster-docs-lyfpo2utz-elementl.vercel.app Direct link to changed pages: |
…for SubprocessExecutionResource
bdc8bea
to
1eb11d3
Compare
…for SubprocessExecutionResource (dagster-io#15984) ## Summary & Motivation This required a few minor supporting changes to `OpExecutionContext` and `BoundOpExecutionContext`. ## How I Tested These Changes New unit test.
Summary & Motivation
This required a few minor supporting changes to
OpExecutionContext
andBoundOpExecutionContext
.How I Tested These Changes
New unit test.