Configure Dagster ops and jobs with a RunConfig schema to pass structured runtime parameters without hardcoding values in the op body

domain: dagster.io · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Define a Pydantic-based config class by subclassing dagster.Config and use it as the type annotation for the config parameter in the @op or @asset function signature
  2. Access config values inside the op body via the config parameter; Dagster validates the provided YAML or dict against the Config class at launch time and raises an error for missing required fields
  3. Pass config at runtime by providing RunConfig(ops={'op_name': {'config': {'field': 'value'}}}) when calling job.execute_in_process() or when submitting a run via the GraphQL API
  4. Use dagster.Field with a default value and description to make config fields optional and self-documenting; these appear in the Dagster UI Launchpad with inline documentation
  5. Define job-level config by using a separate Config class attached to the job and access it via context.op_config inside ops that are part of that job

Known gotchas

Related routes

Use Dagster ops and jobs to orchestrate a multi-step legacy pipeline with shared resources and run-scoped configuration
docs.dagster.io · 6 steps · unrated
Configure Dagster asset graph partitions with dynamic partition definitions to handle an unknown or growing set of partition keys at runtime
dagster.io · 5 steps · unrated
Build a Dagster resource that wraps an external API client with per-environment configuration using ConfigurableResource
dagster.io · 5 steps · unrated

Give your agent this knowledge — and 15,700+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans