Skip to main content

A Dagster run launcher that executes pipeline runs as Docker Swarm services

Project description

dagster-docker-swarm

A Dagster run launcher that executes pipeline runs as Docker Swarm services.

Installation

pip install dagster-docker-swarm

Configuration

Add to your dagster.yaml:

run_launcher:
  module: dagster_docker_swarm
  class: SwarmRunLauncher
  config:
    image: my-registry/my-dagster-image:latest
    networks:
      - my_dagster_network
    env_vars:
      - DAGSTER_POSTGRES_HOST
      - DAGSTER_POSTGRES_DB
      - DAGSTER_CURRENT_IMAGE
    mounts:
      - target: /data
        source: shared_data
        type: volume

Features

  • Launches each Dagster run as an isolated Swarm service (replicas=1, restart=none)
  • Run resume support for interrupted runs
  • Health checking via Swarm task state inspection
  • Automatic service cleanup on completion or failure
  • Private registry authentication
  • NFS and custom volume driver mounts
  • Passthrough service_kwargs for advanced Swarm service configuration

Requirements

  • Docker Swarm mode enabled (docker swarm init)
  • Dagster daemon must have access to the Docker socket
  • DAGSTER_CURRENT_IMAGE env var set on the daemon/webserver if not specifying image in config

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_docker_swarm-0.1.0.tar.gz (102.5 kB view details)

Uploaded Source

Built Distribution

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

dagster_docker_swarm-0.1.0-py3-none-any.whl (10.8 kB view details)

Uploaded Python 3

File details

Details for the file dagster_docker_swarm-0.1.0.tar.gz.

File metadata

  • Download URL: dagster_docker_swarm-0.1.0.tar.gz
  • Upload date:
  • Size: 102.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.14 {"installer":{"name":"uv","version":"0.9.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for dagster_docker_swarm-0.1.0.tar.gz
Algorithm Hash digest
SHA256 1e8290cda0db2eee868b0ba0dd1e06a006987d9351b22b48e59becc1dd0b0663
MD5 3b1f1038196fced9a615a5dfd0953ca5
BLAKE2b-256 9e4b78c7589aa2f72d04e1fd6dcc2fe3f58a1e11648dd057c86c644f32d8be77

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dagster_docker_swarm-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 10.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.14 {"installer":{"name":"uv","version":"0.9.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for dagster_docker_swarm-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 64e68b85e884b9e56dbfd1f54c16ebe090f3f64f23e65f39e6c5a5c2175348d2
MD5 82b7eb6b5bf8edea4502d1561593c01b
BLAKE2b-256 83f7ed2ba111e7aa6479121600e72b19467e5b2376b3331d50faf8951a20b710

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