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

Refactor UnboundOpExecutionContext.bind to use contextmanager #15990

Closed
wants to merge 1 commit into from

Conversation

schrockn
Copy link
Member

Summary & Motivation

UnboundOpExecutionContext.bind current uses the exit stack to manage contextful resources created for a single call. This unnecessarly couples it to that instance. Instead we can just use the native contextmanager facility, which ends up being more composable.

How I Tested These Changes

BK

@github-actions
Copy link

github-actions bot commented Aug 21, 2023

Deploy preview for dagster-docs ready!

Preview available at https://dagster-docs-ieg3djug1-elementl.vercel.app
https://clean-up-dual-state-context-1.dagster.dagster-docs.io

Direct link to changed pages:

@github-actions
Copy link

github-actions bot commented Aug 24, 2023

Deploy preview for dagit-core-storybook ready!

✅ Preview
https://dagit-core-storybook-pmyrx8f75-elementl.vercel.app
https://clean-up-dual-state-context-1.core-storybook.dagster-docs.io

Built with commit 4f9a917.
This pull request is being automatically deployed with vercel-action

@schrockn schrockn force-pushed the clean-up-dual-state-context-1 branch from 7efef15 to cb8062b Compare August 24, 2023 12:05
@schrockn schrockn force-pushed the clean-up-dual-state-context-1 branch from cb8062b to 8bc7365 Compare August 28, 2023 17:52
@github-actions
Copy link

github-actions bot commented Aug 28, 2023

Deploy preview for dagit-storybook ready!

✅ Preview
https://dagit-storybook-d3g5n06xc-elementl.vercel.app
https://clean-up-dual-state-context-1.components-storybook.dagster-docs.io

Built with commit 4f9a917.
This pull request is being automatically deployed with vercel-action

@schrockn schrockn force-pushed the clean-up-dual-state-context-1 branch 2 times, most recently from 1de6541 to de8a156 Compare September 6, 2023 11:16
@schrockn schrockn force-pushed the clean-up-dual-state-context-1 branch 2 times, most recently from 8bf6075 to d03c862 Compare September 19, 2023 10:59
@schrockn schrockn force-pushed the clean-up-dual-state-context-1 branch from d03c862 to 4f9a917 Compare October 1, 2023 09:38
@schrockn schrockn closed this Feb 20, 2024
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.

1 participant