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-0.1.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-0.1.0.tar.gz.

File metadata

File hashes

Hashes for dagster_clt_queued_run_coordinator-0.1.0.tar.gz
Algorithm Hash digest
SHA256 190e955b3d101237406c0d6495657323ac0e4c96fe789c252d988c9f8685ef38
MD5 206c4c8fe2dc8300328560421572d056
BLAKE2b-256 94996c619673c1b7830c3d00333dd9519f4f275001c9e7575562666580e06797

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for dagster_clt_queued_run_coordinator-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3910b9d31f6df074aa7afe964b953ceb33090df7b77e8e2af4d5811147586e6d
MD5 04cd1dd213100dbe687b03b9dd65d290
BLAKE2b-256 62bdd086eb90d66c7561f41d8786c369eb41e8bd0c6b0af810de8aa311cb7f7d

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