/migrate-to-orchestra:dagster-definitions-to-orchestrafrom migrate-to-orchestra
Converts Dagster Definitions, jobs, schedules, and top-level config (RetryPolicy, run tags, concurrency) into Orchestra pipeline root YAML. Apply before converting individual assets/ops.
Ships in migrate-to-orchestra. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
A Dagster project is described by a Definitions object that groups assets, jobs, schedules, sensors, and resources. Scheduling, retries, concurrency, and timeouts are set on jobs (via tags and RetryPolicy) and on ScheduleDefinition objects. None of these map to individual Orchestra tasks — they map to root-level fields on the Orchestra pipeline YAML. Apply this skill first, before any asset/op-level conversion, to establish the correct pipeline skeleton.
A useful rule of thumb: one Dagster job (or one cohesive asset selection driven by a schedule) -> one Orchestra pipeline.
ScheduleDefinition / @schedule -> schedule:| Dagster | Orchestra | Notes |
|---|---|---|
cron_schedule="0 2 * * *" | cron: '0 2 * * ? *' | Dagster's cron is standard 5-field — convert to Orchestra's 6-field AWS EventBridge cron, do NOT copy verbatim |
cron_schedule="@daily" | cron: '0 0 ? * * *' | Expand shorthand, then convert to 6-field |
execution_timezone="Europe/London" | timezone: Europe/London | IANA timezone |
ScheduleDefinition(job=...) | one schedule: entry | The schedule targets a job -> the pipeline |
@schedule returning RunRequest(run_config=...) | schedule[].run_inputs | Map run config values to inputs |
| no schedule (manual / sensor only) | (omit schedule:) | Use webhook: {enabled: true} or sensors:/trigger_events: |
Orchestra requires a 6-field AWS EventBridge cron (minute hour day-of-month month day-of-week year), not Dagster's standard 5-field cron_schedule. Exactly one of day-of-month/day-of-week must be ?. Passing a 5-field string fails validation with "Incorrect number of values ... 6 required, 5 provided."
Orchestra ScheduleModel:
schedule:
- cron: '0 2 * * ? *'
timezone: UTC
name: nightly
run_inputs: {}
exclude: []
RetryPolicy -> configuration:| Dagster | Orchestra field | Notes |
|---|---|---|
RetryPolicy(max_retries=N) | configuration.retries | Integer |
RetryPolicy(delay=N) | configuration.retry_delay | Integer MINUTES — Dagster's delay is seconds, so convert: N / 60 (round up). Capped at 120 minutes — clamp and flag with a comment if larger |
dagster/max_runtime run tag (seconds) | configuration.timeout | Run-termination timeout |
Backoff.* / Jitter.* | (no equivalent) | Flat retry_delay only — note the simplification |
op-level vs job-level RetryPolicy | pipeline configuration or per-task configuration | Per-op retries -> per-task configuration override |
configuration.concurrency.max_active# Dagster (job tag / instance config)
@job(tags={"dagster/concurrency_key": "elt", "dagster/max_concurrent": 1})
def my_job(): ...
# Orchestra
configuration:
concurrency:
max_active: 1 # 0 or null = no limit
on_limit: QUEUE # SKIP (default) | QUEUE | QUEUE_LATEST
Set on_limit as well as max_active. Dagster's run concurrency queues blocked runs,
so Orchestra's default on_limit: SKIP would silently drop runs the Dagster job would have
executed — QUEUE is the faithful mapping for a dagster/max_concurrent tag or an instance
concurrency limit. Use QUEUE_LATEST only where the job is a refresh and the user confirms
only the latest run matters. Queue scope matches the limit's (per pipeline + environment +
Git branch), waiting runs expire as SKIPPED after 24 hours, and a queued run picks up the
pipeline version current when it starts. See
yaml-authoring.md.
Dagster PartitionsDefinition, partitioned schedules, and backfills have no Orchestra equivalent — Orchestra runs from activation forward and does not backfill. Convert only the cron; flag partition/backfill semantics as a manual review item.
Config classes / RunConfig / EnvVar -> inputs:# Dagster
from dagster import Config
class ELTConfig(Config):
target_env: str = "prod"
table: str = "orders"
# Orchestra
inputs:
target_env:
type: string
default: prod
table:
type: string
default: orders
optional: true
Valid type values: string, number, boolean, dict, list. Reference in task parameters as ${{ inputs.target_env }}.
EnvVar("SECRET") for credentials does not become an input — it becomes part of the Orchestra connection (see dagster-connections-to-orchestra).
tags: only (not on the group)pipeline:
stage-001:
tasks:
task-001:
tags:
- elt
- nightly
Confirmed live against Orchestra's /pipelines/schema validator: tags: directly on a stage (pipeline.<stage-id>.tags) is rejected with "extra_forbidden" — tags only exists on TaskModel, not TaskGroupModel. Copy Dagster's job/op-group tags onto every task, not once onto the enclosing stage.
ScheduleDefinition.cron_schedule -> schedule: block with cron: and timezone:configuration.concurrency.max_active + on_limit (QUEUE unless only the latest run matters)RetryPolicy(max_retries, delay) -> configuration.retries + configuration.retry_delay (minutes — convert Dagster's seconds delay by dividing by 60)dagster/max_runtime tag -> configuration.timeout (seconds)alerts: block (see dagster-alerts-to-orchestra)Config / RunConfig non-secret values -> inputs: blockEnvVar secrets -> Orchestra connection (never inline)TaskGroupModel has no tags field)Backoff/Jitter strategiesschedule:, set webhook: {enabled: true} if event-triggeredfrom dagster import Definitions, job, op, ScheduleDefinition, RetryPolicy, Backoff
default_retry = RetryPolicy(max_retries=2, delay=300, backoff=Backoff.LINEAR)
@op(retry_policy=default_retry)
def extract(): ...
@op(retry_policy=default_retry)
def load(extracted): ...
@job(tags={"dagster/max_runtime": 3600, "team": "data-team"})
def nightly_elt():
load(extract())
nightly_schedule = ScheduleDefinition(
job=nightly_elt, cron_schedule="0 2 * * *", execution_timezone="UTC",
)
defs = Definitions(jobs=[nightly_elt], schedules=[nightly_schedule])
version: v1
name: nightly-elt
# ScheduleDefinition(cron_schedule="0 2 * * *", execution_timezone="UTC")
schedule:
- cron: '0 2 * * ? *'
timezone: UTC
# RetryPolicy(max_retries=2, delay=300 seconds -> 5 minutes) + dagster/max_runtime=3600
configuration:
retries: 2
retry_delay: 5
timeout: 3600
# Notifications converted from run status sensors / hooks
alerts:
- name: slack-on-failure
statuses:
- FAILED
destinations:
- integration: SLACK
destination: '#data-alerts'
# Dropped: Backoff.LINEAR strategy, team tag (use meta: if needed)
pipeline:
# ... extract -> load tasks below, each with tags: [elt, nightly] (task-level only)
RetryPolicy.delay is seconds, but retry_delay is minutes — Orchestra's field is integer MINUTES despite the name, so divide Dagster's delay by 60 (round up), don't just cast to int. No timedelta conversion (that is the Airflow trap, not Dagster). Cap at 120 minutes regardless.cron_schedule is 5-field, Orchestra's cron is 6-field — never copy verbatim; append ?/year per the AWS EventBridge rule above.Backoff / Jitter — Orchestra retry_delay is a flat integer. Backoff/jitter strategies have no equivalent; use the base delay and note the simplification.PartitionsDefinition, partitioned schedules and backfills have no Orchestra equivalent. Convert the cron only and flag the partition logic.Definitions with multiple jobs — each Dagster job typically becomes its own Orchestra pipeline (separate YAML), not multiple stages in one pipeline.RunConfig / Config — op/asset run config becomes Orchestra inputs: referenced via ${{ inputs.x }}.EnvVar — non-secret values map to inputs:; secrets map to the Orchestra connection, never inline.configuration.concurrency.max_active, with on_limit: QUEUE to preserve Dagster's queue-rather-than-drop behaviour.tags on a stage fails real validation — confirmed by calling Orchestra's actual /pipelines/schema endpoint — TaskGroupModel rejects any tags key with "extra_forbidden". Always put tags: on each TaskModel, never on the stage wrapping it.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub orchestra-hq/orchestra-skills --plugin migrate-to-orchestra52 skills in this plugin
/airbyte-cloud-airflow-to-orchestraUse this skill when the user wants to convert an Airflow task that uses AirbyteTriggerSyncOperator or AirbyteSensor (apache-airflow-providers-airbyte) into an equivalent Orchestra pipeline task targeting Airbyte Cloud. Triggers: any mention of migrating, converting, or rewriting Airflow Airbyte tasks to Orchestra; any Airflow DAG code containing AirbyteTriggerSyncOperator or AirbyteSensor pointed at Airbyte Cloud./airbyte-cloud-dagster-to-orchestraUse this skill when the user wants to convert a Dagster integration that syncs Airbyte Cloud — AirbyteCloudResource, build_airbyte_assets, load_airbyte_cloud_asset_specs, or airbyte_assets — into an equivalent Orchestra pipeline task targeting Airbyte Cloud. Triggers: any mention of migrating or rewriting Dagster Airbyte assets/resources to Orchestra; any Dagster code importing from dagster_airbyte pointed at Airbyte Cloud./airbyte-cloud-prefect-to-orchestraUse this skill when the user wants to convert a Prefect task that syncs Airbyte Cloud — AirbyteConnection block, trigger_sync_run_and_wait_for_completion, or AirbyteSyncResult — into an equivalent Orchestra pipeline task targeting Airbyte Cloud. Triggers: any mention of migrating or rewriting Prefect Airbyte tasks to Orchestra; any Prefect flow code importing from prefect_airbyte pointed at Airbyte Cloud.Other plugins' skills for the same job