-
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
Update docs to reflect pools concept for concurrency #27171
base: prha/run_pools_ui
Are you sure you want to change the base?
Conversation
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
This stack of pull requests is managed by Graphite. Learn more about stacking. |
Deploy preview for dagster-university ready! ✅ Preview Built with commit aa5ef8c. |
Deploy preview for dagster-docs ready! Preview available at https://dagster-docs-hge1uecii-elementl.vercel.app Direct link to changed pages: |
840e884
to
558acb1
Compare
aa5ef8c
to
c15ed10
Compare
c15ed10
to
45ed699
Compare
558acb1
to
a169ead
Compare
45ed699
to
520a23a
Compare
a169ead
to
9db7df6
Compare
520a23a
to
8b6dbf2
Compare
9db7df6
to
3fdabb4
Compare
8b6dbf2
to
895f9e5
Compare
## Summary & Motivation Users often want to make small changes to the existing policies. There is an existing utility to remove a sub-condition (`.without(…)`), and you can add a new sub-condition with `&`. However, these utilities aren't always the most ergonomic for certain use cases. This would allow the following types of changes to our examples: [Older time window partitions](https://docs.dagster.io/concepts/automation/declarative-automation/customizing-automation-conditions#update-an-older-time-partition-when-using-automationconditionon_cron) before: ```python condition = five_days_ago_condition & AutomationCondition.eager().without( AutomationCondition.in_latest_time_window(), ) ``` after: ```python AutomationCondition.eager().replace( "in_latest_time_window", five_days_ago_condition ) ``` ## How I Tested These Changes Added unit tests. ## Changelog Implemented `AutomationCondition.replace()` function to improve ergonomics of updating sub-conditions.
3fdabb4
to
ffc15a7
Compare
895f9e5
to
6e54cc9
Compare
Summary & Motivation
Changes the docs to include the pools concept
How I Tested These Changes
Inspection