Skip to main content

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., DequeueIntervalSecondsdequeue_interval_seconds).
    • With the tag_concurrency_limits option, you can define per-code-location concurrency limits by using the code_location tag.

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dagster_clt_queued_run_coordinator-1.10.0.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file dagster_clt_queued_run_coordinator-1.10.0.tar.gz.

File metadata

File hashes

Hashes for dagster_clt_queued_run_coordinator-1.10.0.tar.gz
Algorithm Hash digest
SHA256 be3f19b86a1d3ec8f6e772e1fc392866a16befd473ed9878075ce61e83f4d849
MD5 edba66e979cc808dc06996b5b49fde6a
BLAKE2b-256 30a3280b3e3c5ea086349805ab0a9da764b8dfaec779ed1adda61654e36a803e

See more details on using hashes here.

File details

Details for the file dagster_clt_queued_run_coordinator-1.10.0-py3-none-any.whl.

File metadata

File hashes

Hashes for dagster_clt_queued_run_coordinator-1.10.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b491ae9cf97213c55c20b6001beed7d1a56d7b9882a9ce7fb396a327132187ae
MD5 61bb78dd50cc388433d8fe662b91fa3b
BLAKE2b-256 2de8e8714a5745cbb26b13a3839617f2a5b4e6028c134d8c150ae62b7a164143

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page