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

Update docs to reflect pools concept for concurrency #27171

Open
wants to merge 2 commits into
base: prha/run_pools_ui
Choose a base branch
from

Conversation

prha
Copy link
Member

@prha prha commented Jan 16, 2025

Summary & Motivation

Changes the docs to include the pools concept

How I Tested These Changes

Inspection

Copy link

Deploy preview for dagster-university ready!

✅ Preview
https://dagster-university-271kk31vu-elementl.vercel.app
https://prha-concurrency-docs.dagster-university.dagster-docs.io

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

@prha prha force-pushed the prha/run_pools_ui branch from 840e884 to 558acb1 Compare January 16, 2025 20:23
@prha prha force-pushed the prha/concurrency_docs branch from aa5ef8c to c15ed10 Compare January 16, 2025 20:23
@prha prha changed the title [automation] Add dagster-dlt and dagster-sling in tox (#27125) Update docs to reflect pools concept for concurrency Jan 16, 2025
@prha prha force-pushed the prha/concurrency_docs branch from c15ed10 to 45ed699 Compare January 16, 2025 20:28
@prha prha requested a review from cmpadden January 16, 2025 20:42
@prha prha force-pushed the prha/run_pools_ui branch from 558acb1 to a169ead Compare January 17, 2025 01:08
@prha prha force-pushed the prha/concurrency_docs branch from 45ed699 to 520a23a Compare January 17, 2025 01:08
@prha prha force-pushed the prha/run_pools_ui branch from a169ead to 9db7df6 Compare January 17, 2025 02:28
@prha prha force-pushed the prha/concurrency_docs branch from 520a23a to 8b6dbf2 Compare January 17, 2025 02:28
@prha prha force-pushed the prha/run_pools_ui branch from 9db7df6 to 3fdabb4 Compare January 17, 2025 02:55
@prha prha force-pushed the prha/concurrency_docs branch from 8b6dbf2 to 895f9e5 Compare January 17, 2025 02:55
deepyaman and others added 2 commits January 17, 2025 14:27
## 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.
@prha prha force-pushed the prha/run_pools_ui branch from 3fdabb4 to ffc15a7 Compare January 17, 2025 22:30
@prha prha force-pushed the prha/concurrency_docs branch from 895f9e5 to 6e54cc9 Compare January 17, 2025 22:30
@prha prha marked this pull request as ready for review January 17, 2025 22:40
@prha prha requested a review from neverett as a code owner January 17, 2025 22:40
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