Code Location Tagging (CLT) QueuedRunCoordinator – a custom Dagster run coordinator that automatically injects code-location tags before queuing.
Project description
Dagster CLTQueuedRunCoordinator
CLTQueuedRunCoordinator (Code-Location Tagging Queued Run Coordinator) is a custom Dagster run coordinator that automatically tags every run with its code-location name. Each run receives a tag in the following format:
code_location:{code_location_name}
CLTQueuedRunCoordinator helps you enforce tag-based concurrency limits for each code server (code location), allowing you to cap the number of Dagster runs on Kubernetes. It inherits from QueuedRunCoordinator, so it supports all of the same configuration options.
How to use
To use the CLTQueuedRunCoordinator, you must configure the Dagster daemon, the Dagster web server, and the Dagster code-location server.
Daemon
dagsterDaemon:
enabled: true
image:
repository: "ghcr.io/ssup2/dagster-clt-queued-run-coordinator"
tag: "1.10.5"
pullPolicy: Always
runCoordinator:
enabled: true
type: CustomRunCoordinator
config:
customRunCoordinator:
module: clt_queued_run_coordinator.coordinator
class: CLTQueuedRunCoordinator
config:
dequeue_interval_seconds: 5
dequeue_use_threads: true
dequeue_num_workers: 4
tag_concurrency_limits:
- key: "code_location"
value: "code-location-a"
limit: 10
- key: "code_location"
value: "code-location-b"
limit: 20
Set the run coordinator to CustomRunCoordinator, and configure CLTQueuedRunCoordinator with the values below:
- Container Image :
ghcr.io/ssup2/dagster-clt-queued-run-coordinator:<release-version> - Coordinator Module :
clt_queued_run_coordinator.coordinator - Coordinator Class :
CLTQueuedRunCoordinator - Config : Uses the same settings as
QueuedRunCoordinator, but all option names are in snake_case rather than PascalCase (e.g.,DequeueIntervalSeconds→dequeue_interval_seconds).- With the
tag_concurrency_limitsoption, you can define per-code-location concurrency limits by using thecode_locationtag.
- With the
Web Server
dagsterWebServer:
enabled: true
image:
repository: "ghcr.io/ssup2/dagster-clt-queued-run-coordinator"
tag: "1.10.5"
pullPolicy: Always
Set the web server image to the same image as the daemon.
- Container Image :
ghcr.io/ssup2/dagster-clt-queued-run-coordinator:<release-version>
Code Location Server
# pip
pip install dagster-clt-queued-run-coordinator
# uv
uv add dagster-clt-queued-run-coordinator
Code Location Server must install the dagster-clt-queued-run-coordinator python package.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dagster_clt_queued_run_coordinator-1.10.0.tar.gz.
File metadata
- Download URL: dagster_clt_queued_run_coordinator-1.10.0.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
be3f19b86a1d3ec8f6e772e1fc392866a16befd473ed9878075ce61e83f4d849
|
|
| MD5 |
edba66e979cc808dc06996b5b49fde6a
|
|
| BLAKE2b-256 |
30a3280b3e3c5ea086349805ab0a9da764b8dfaec779ed1adda61654e36a803e
|
File details
Details for the file dagster_clt_queued_run_coordinator-1.10.0-py3-none-any.whl.
File metadata
- Download URL: dagster_clt_queued_run_coordinator-1.10.0-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b491ae9cf97213c55c20b6001beed7d1a56d7b9882a9ce7fb396a327132187ae
|
|
| MD5 |
61bb78dd50cc388433d8fe662b91fa3b
|
|
| BLAKE2b-256 |
2de8e8714a5745cbb26b13a3839617f2a5b4e6028c134d8c150ae62b7a164143
|