Introducing a new way to review your PRs.

Read the announcement

dagster-io / dagster

An orchestration platform for the development, production, and observation of data assets.

View on GitHub

19 documents · Updated Nov 23, 2026

docs / definitions-and-automation

Definitions and automation

Dagster uses a declarative programming model to describe data assets, the work that produces them, and the rules that start that work. Engineers state the desired assets and execution behavior in definitions. Dagster then validates those definitions, groups them into a loadable project, and uses schedules, sensors, or asset conditions to request runs.

Declarative model

Definition set

A definition is a named description of a Dagster object that can be loaded by Dagster tools. A Definitions object is the main project boundary: it brings together assets, asset checks, jobs, schedules, sensors, and shared resources so the system can reason about their relationships as one set. A code location exposes this set through a top-level Definitions value, which lets tools inspect user code without placing all user code in the tool process. Definitions

Definitions are declarative because they describe what exists and how objects relate. They do not themselves mean that a run is active. The system resolves the set into an asset graph and executable jobs when it needs to validate, inspect, or launch work. Definitions

References: python_modules/…/definitions_class.py• L325-408 python_modules/…/definitions_class.py• L687-732

Repository boundary

A repository is the logical container that presents a complete set of definitions to Dagster. Current projects normally use Definitions, which creates the repository view needed by the system; the older @repository form remains a way to group definitions and can also support lazy loading. RepositoryDefinition, repository

The repository view gives the platform one place to find jobs, schedules, sensors, source assets, asset definitions, and asset checks. It also provides the asset graph used to resolve asset selections and validate partition relationships. RepositoryDefinition, RepositoryDefinition, RepositoryDefinition

At workspace level, Dagster combines repository views from multiple code locations into one global asset graph. The graph keeps repository scope for ownership and targeting while presenting shared asset keys to selection and automation. A key may have one materialization form and one observation form. More than one form of either type makes the asset definition ambiguous. RemoteWorkspaceAssetGraph, duplicate asset definitions

The workspace graph also represents automated asset jobs as named graph entities. A repeated automated job name across code locations is a collision because the job name is the shared key for its automation condition. BaseAssetGraph, duplicate asset job keys

References: python_modules/…/repository_definition.py• L103-132 python_modules/…/repository_definition.py• L198-205 python_modules/…/repository_definition.py• L261-330 python_modules/…/base_asset_graph.py• L281-335 python_modules/…/remote_asset_graph.py• L820-966 python_modules/…/remote_asset_graph.py• L969-1037

Definition composition

Separate definition sets can be merged into one project. This supports a modular authoring style in which teams or components provide parts of the system while the final project keeps one shared namespace for names, resources, and execution policy. Definitions.merge

Composition is safe only when shared names and system-wide settings agree. Conflicting resource keys, logger keys, or executors are treated as definition errors instead of being silently replaced. Definitions.merge

References: python_modules/…/definitions_class.py• L750-842

Asset and computation model

Software-defined assets

A software-defined asset is a named data product plus its upstream data dependencies and the function that can produce or observe it. The asset key identifies the product. The dependency declarations tell Dagster how products relate. The function supplies the computation that can materialize the product. asset, AssetSpec

An AssetsDefinition groups one or more asset specifications with the computation that produces them when execution is available. It can also describe assets that have no local computation or that represent observation rather than materialization. Asset checks can travel with the same definition. AssetsDefinition, asset execution types

For a multi-asset computation, AssetOut describes one output asset and carries its key, metadata, partition, and automation intent into an AssetSpec. This keeps output-level data meaning separate from the computation that emits several outputs. See Software-defined assets for the asset authoring model. AssetOut, AssetOut.to_spec

Asset properties can express ownership, grouping, partitions, freshness, and automation intent. These properties let the system plan work from the state of the data graph rather than from a fixed list of commands. AssetsDefinition

The asset graph normalizes source assets and creates non-executable external nodes for referenced keys that have no supplied definition. It then exposes asset nodes, checks, dependencies, execution sets, and asset-job automation to selection and run planning. AssetGraph, AssetGraph, BaseAssetGraph

References: python_modules/…/assets_definition.py• L88-116 python_modules/…/assets_definition.py• L744-785 python_modules/…/asset_out.py• L48-82 python_modules/…/asset_out.py• L246-259 python_modules/…/asset_graph.py• L185-291 python_modules/…/base_asset_graph.py• L340-483

Partition definitions

A PartitionsDefinition describes the valid slices of one asset or job. It supplies the keys used for selection and run planning, supports validation and subsets, and gives each partitioned workload a stable identity. Partition definitions can be static, time-based, dynamic, or a combination of two supported dimensions. PartitionsDefinition, PartitionsDefinition

Static partitions use a fixed set of unique valid keys. Dynamic partitions keep the definition stable while their keys are added or removed at run time through the instance-backed dynamic partition store. A named dynamic definition needs that store when Dagster reads or validates its current keys. StaticPartitionsDefinition, DynamicPartitionsDefinition, DynamicPartitionsDefinition

Multi-partitions combine exactly two dimensions into a cross-product of addressable slices. The dimensions may use static, time-window, or named dynamic keys. Each dimension must accept the requested component key, and static keys must fit the multi-partition key format. MultiPartitionsDefinition, MultiPartitionsDefinition, MultiPartitionsDefinition

Partition keys are also a boundary between definitions and run requests. A request for a partition must use a key that the attached definition recognizes, while a dynamic key must first exist in the named partition set. Dagster tracks selected partitions as serializable subsets so schedules, asset selections, and automation can carry only the required slices. PartitionsDefinition, PartitionsSubset, DefaultPartitionsSubset, TimeWindowPartitionsSubset

References: python_modules/…/partitions_definition.py• L29-35 python_modules/…/partitions_definition.py• L101-177 python_modules/…/static.py• L24-55 python_modules/…/dynamic.py• L34-74 python_modules/…/dynamic.py• L124-166 python_modules/…/partitions_subset.py• L16-39 python_modules/…/default.py• L148-180 python_modules/…/time_window.py• L98-115 python_modules/…/multi.py• L47-82 python_modules/…/multi.py• L84-133 python_modules/…/multi.py• L192-230

Ops and graphs

An op is a unit of user-defined computation. A graph connects ops and nested graphs through declared inputs and outputs. The graph defines the order in which values move through computation, while an asset defines the data product that the computation creates or observes. OpDefinition, GraphDefinition

This distinction supports two related ways to describe work. Use ops and graphs when the main concern is the execution flow. Use assets when the main concern is the state and lineage of data products. See Ops, jobs, and graphs for composition and execution flow. DependencyDefinition, DependencyStructure

The decorated APIs infer much of this model from function signatures while still allowing explicit inputs, outputs, config, resources, retries, and pools. This gives user code a compact declarative form without removing the graph's explicit dependency contract. op, job

References: python_modules/…/op_definition.py• L59-95 python_modules/…/graph_definition.py• L127-138 python_modules/…/dependency.py• L618-689 python_modules/…/dependency.py• L893-904 python_modules/…/op_decorator.py• L65-128 python_modules/…/job_decorator.py• L63-118

Jobs and selections

A job is an executable plan for a graph or for a selected set of assets. An op-based job is composed by invoking ops or graphs inside a job function. An asset job is declared by selecting assets and is resolved against the project asset graph when the project loads. job, GraphDefinition.to_job, JobDefinition

Asset selection is the link between the data model and execution. It lets one job target a subset of the graph and lets schedules or sensors target that job or selection. The selected assets must belong to the same project definition set so Dagster can resolve their dependencies. JobDefinition

An asset job can also carry an automation condition and a partition definition. The loaded asset graph exposes these job-level rules with the job's target and partition scope, so automation can evaluate the correct work. JobDefinition, RemoteAssetJobNode, remote asset job loading

See Ops, jobs, and graphs for composition and execution flow.

References: python_modules/…/job_decorator.py• L147-164 python_modules/…/graph_definition.py• L592-615 python_modules/…/job_definition.py• L240-265 python_modules/…/job_definition.py• L958-1017 python_modules/…/remote_asset_graph.py• L64-92 python_modules/…/remote_asset_graph.py• L782-809

Run configuration

Run configuration is the declarative input for one execution. RunConfig groups op or asset settings with resource, logger, and execution settings, while the generated run schema checks that these values match the loaded job. RunConfig, run configuration schema

Partitioned configuration maps each valid partition key to run configuration and run tags. This lets one job use the same definition for many data slices while keeping partition identity visible to run history and backfills. PartitionedConfig, partitioned run configuration

References: python_modules/…/run_config.py• L126-190 python_modules/…/run_config.py• L621-690 python_modules/…/partitioned_config.py• L43-49 python_modules/…/partitioned_config.py• L157-210

Run request model

Schedule evaluation

A schedule describes time-based evaluation for a target job or asset selection. At each eligible time, its evaluation can request one or more runs, return a run configuration, or explain why no run is needed. The schedule context supplies the scheduled time and any resources needed to make that decision. schedule, ScheduleDefinition.evaluate_tick

The schedule controls when Dagster asks the user-defined rule for a decision. It does not perform the target computation itself. The resulting run request is handed to the run system, which starts the selected job with its configuration. See Schedules, sensors, and automation for daemon operation.

References: python_modules/…/schedule_decorator.py• L42-78 python_modules/…/schedule_definition.py• L972-1019

Sensor evaluation

A sensor is an event- or state-based rule that is evaluated repeatedly. Its evaluation function can inspect the sensor context and return run requests, a skip reason, or no request. A sensor can target a job, several jobs, or an asset selection. sensor, SensorDefinition

Sensor state includes a cursor and tick history. The cursor lets a sensor remember what it has already handled, so later evaluations can turn new events into new runs without repeating old work. The sensor daemon checks each sensor's minimum interval, rechecks that it is still running before evaluation and submission, and allows only one active evaluation for a sensor. SensorEvaluationContext, sensor daemon, sensor tick state

Run requests can use a run key for idempotence. Before submission, the daemon checks for an existing run with the same key in the sensor's repository scope, so a restart or partial failure does not normally create a duplicate run. sensor run submission, sensor run identity

References: python_modules/…/sensor_decorator.py• L39-71 python_modules/…/sensor_definition.py• L700-837 python_modules/…/sensor.py• L356-537 python_modules/…/sensor.py• L617-689 python_modules/…/sensor.py• L1231-1305 python_modules/…/sensor.py• L1395-1478

Run requests

A run request is the common handoff from a schedule, sensor, or automation rule to execution. It identifies the target job and can carry configuration, tags, a partition key, and an idempotency key. A skip result records that evaluation ran but found no work to launch. schedule, sensor

This boundary keeps decision logic separate from execution. A rule decides whether work should run and what it should process. The run system decides how to execute that request.

References: python_modules/…/schedule_decorator.py• L66-78 python_modules/…/sensor_decorator.py• L61-71 python_modules/…/unresolved_asset_job_definition.py• L115-188

Declarative asset automation

Automation conditions

An automation condition is a declarative rule about when an asset or asset check should be automatically executed. Conditions can describe asset state such as a changed code version or an updated upstream dependency. Engineers can combine conditions with boolean operators to express a larger policy. AutomationCondition

Dependency-aware conditions evaluate the same rule against related assets and combine the results across the dependency set. An ANY_DEPS_MATCH condition requests work when at least one eligible dependency matches. An ALL_DEPS_MATCH condition requests work only when every eligible dependency matches. The policy can limit or exclude dependencies and can resolve through virtual assets when the graph requires that view. dependency automation operators, dependency match conditions

Conditions can also inspect related asset checks. ANY_CHECKS_MATCH and ALL_CHECKS_MATCH apply the same kind of match rule to selected checks, with an option to consider only blocking checks. check automation operators, check match conditions

Some conditions use run history as their input. They can match the latest run by tag or inspect new materializations and require any or all of the related runs to have the requested tags. This lets asset automation respond to the kind of run that produced an update, not only to the fact that an update exists. run-based automation operands, run-tag update conditions

The condition is attached to an asset, asset check, or asset job as intent. It does not start a run during definition loading. The automation system evaluates the condition against the current graph and state, then turns a true result into work for the affected entities. AutomationCondition, AssetSpec, AssetCheckNode

References: python_modules/…/automation_condition.py• L74-107 python_modules/…/automation_condition.py• L244-247 python_modules/…/asset_spec.py• L134-156 python_modules/…/base_asset_graph.py• L231-279 python_modules/…/dep_operators.py• L112-201 python_modules/…/dep_operators.py• L236-302 python_modules/…/check_operators.py• L27-173 python_modules/…/run_operands.py• L23-204

Automation sensor

An automation condition sensor evaluates conditions for a selected group of assets and requests runs for the assets whose conditions are true. It provides the bridge between declarative asset intent and the run request model used by the rest of Dagster. AutomationConditionSensorDefinition

The sensor can target all assets or a narrower selection. It can also group several automation policies behind separate sensors when teams need different operating boundaries. The sensor's default state and evaluation interval control whether and how often the rule is active. AutomationConditionSensorDefinition

The asset daemon evaluates automation sensors as part of the same sensor-state model as other daemon-managed sensors. It keeps a cursor for each policy, records condition evaluations, and can submit ordinary asset runs, job-entity runs, or partition backfills when the evaluated state requires them. asset daemon, asset automation evaluation

References: python_modules/…/automation_condition_sensor_definition.py• L133-193 python_modules/…/asset_daemon.py• L596-735 python_modules/…/asset_daemon.py• L1157-1371

Daemon coordination

The daemon controller runs the background services that evaluate schedules, sensors, and asset automation against the loaded workspace. These services read definitions and persisted state, then submit run requests without changing the definitions themselves. daemon controller

Each daemon runs a long-lived loop that yields often enough for the system to record heartbeats. If a loop raises an error, the daemon records the error, waits, and restarts the loop. A second daemon of the same type is detected through heartbeat identity because concurrent copies can submit duplicate work. daemon loop, daemon heartbeats

Schedules and standard sensors are evaluated on daemon loops. Asset automation is handled through the asset daemon path, which tracks condition state and submits asset runs or backfills when the evaluated state requires them. Sensor and asset ticks persist run requests before submission, so an interrupted tick can resume unfinished work instead of losing the request. sensor daemon, asset daemon, asset run submission

The sensor daemon and asset daemon enforce per-sensor minimum intervals and avoid more than one active evaluation for a sensor. They can use worker pools while the main daemon loop continues to report health. Tick state includes success, skip, failure, cursor, and unfinished run information, which supports retry and recovery after an interruption. sensor daemon loop, sensor iteration, asset daemon loop

After a rule creates a run request, the queued-run coordinator daemon moves eligible queued runs to the run launcher. It applies run limits, priority, and concurrency rules before launch. It can pause runs from a code location after user-code failures and retry them when the configured retry policy allows it. queued run coordinator daemon, queued run selection, queued run launch

The high-level flow is:

flowchart LR
    A[Definitions] --> B[Loaded asset graph and targets]
    B --> C{Schedule, sensor, or asset condition}
    C -->|time or event rule| D[Evaluation]
    C -->|asset state rule| D
    D -->|work needed| E[Run request]
    D -->|no work| F[Skip and record state]
    E --> G[Queued run]
    G -->|limits and policy allow| H[Job execution]
    G -->|blocked or paused| G
    H --> I[Updated asset and run state]
    I --> D

References: python_modules/…/controller.py• L66-128 python_modules/…/daemon.py• L66-212 python_modules/…/daemon.py• L298-357 python_modules/…/sensor.py• L356-698 python_modules/…/asset_daemon.py• L507-758 python_modules/…/asset_daemon.py• L1019-1128 python_modules/…/asset_daemon.py• L1312-1369 python_modules/…/queued_run_coordinator_daemon.py• L43-56 python_modules/…/queued_run_coordinator_daemon.py• L196-348 python_modules/…/queued_run_coordinator_daemon.py• L371-500

Operational boundaries

Code loading

Dagster separates user-defined definitions from tools such as the web server and daemon. The tools locate a loadable module, inspect its Definitions value, and use the resulting repository view to plan and request work. Definitions

This boundary means definition loading is part of the system contract. A definition must be complete enough for Dagster to resolve names, targets, resources, and asset relationships before a schedule, sensor, or automation rule can launch a run.

References: python_modules/…/definitions_class.py• L399-408 python_modules/…/definitions_class.py• L720-732

Resource scope

Resources provide external services and shared execution support to definitions. Top-level resources in Definitions are attached to assets and to jobs used by schedules and sensors when those objects do not already provide their own resources. Definitions, Definitions

The scope follows the owner of the work. A schedule or sensor receives resources while it evaluates its rule. A job receives resources while it executes. Resource initialization validates required dependencies and config, and a resource may clean up after execution. ResourceDefinition, resource invocation

References: python_modules/…/definitions_class.py• L137-238 python_modules/…/definitions_class.py• L353-369 python_modules/…/resource_definition.py• L43-73 python_modules/…/resource_invocation.py• L16-94 python_modules/…/sensor_definition.py• L266-300

Change checklist

When these files or sections are changed, remember to consider these:

  • When adding or renaming a definition, check every schedule, sensor, and asset job that targets its name or selection. Target resolution happens against the full project asset graph.
  • When changing an asset key, dependency, partition rule, or automation condition, review downstream selections and condition scope. These values affect both graph validation and daemon decisions.
  • When changing dependency-aware or check-aware automation, review the intended ANY or ALL relationship and the assets or checks included by allow, ignore, blocking, or virtual-dependency scope.
  • When changing run-history conditions or their tag filters, review the materialization cursor boundary and the intended ANY or ALL match rule. These choices change which updates can create run requests.
  • When adding or removing dynamic partition keys, review sensors or other evaluation logic that emits partition run requests. The named partition store is the source of valid keys after definition load.
  • When changing a shared resource or executor, review all merged Definitions objects. Conflicts are project-level errors and can block code loading.
  • When changing sensor or automation state behavior, preserve cursor and tick meaning. Existing persisted state can change which events produce run requests.
  • When changing run request fields, review the schedule, sensor, and asset daemon paths together. They share the handoff from evaluation to execution.
  • When changing queued-run limits, priority, or concurrency policy, review the run request path and the queued-run coordinator together. A valid request can remain queued or be launched in a different order.
  • When changing code-location failure handling, review retry limits and pause timing. Persisted queue state can delay later runs from the same location.
  • When changing multi-dimensional partitions, preserve dimension names and valid key formats. Partition key serialization and subset behavior depend on these values.
  • When changing an AssetsDefinition, keep its asset specs, computation outputs, checks, execution set, and selected subsets aligned. A definition can expose several assets, so one output or check change can affect more than one asset key.
  • When assigning different partition definitions to assets in one executable definition, review subset support. A definition that cannot subset must keep one partition definition across its assets.
  • When adding asset automation to a job, check job names across code locations. A repeated name can replace the earlier condition in the workspace graph.
  • When changing run configuration or partitioned configuration, review both the job's config schema and the partition key validation path. A valid definition can still produce an invalid run request.
  • When changing daemon loop recovery or heartbeat behavior, preserve the single-daemon assumption and the tick retry boundary. A second daemon or an unsafe retry can duplicate automation work.
  • When changing sensor run-key handling or partial submission recovery, preserve the link between run keys, tick state, and repository scope. This link prevents duplicate runs after a restart.

Important failure modes

TriggerConsequenceGuard
An asset job selects an asset that is not in the project definitionsThe asset job cannot resolve when the repository is loadedKeep selected assets in the same Definitions set and validate the loadable definitions
Two merged definition sets provide different objects under the same resource or logger keyDefinition merging raises an error instead of choosing one valueAssign each shared key one owner and merge compatible definition sets
A schedule or sensor targets more than one incompatible target formDefinition construction fails and the instigator cannot loadUse one target model for each instigator: a job, jobs, or an asset selection
A dependency or check condition uses the wrong scope or ANY/ALL ruleAssets can be requested too early or not requested when an intended dependency or check changesReview eligible entities and the match rule when changing the condition
A run-history condition uses an incomplete tag filter or the wrong ANY/ALL ruleAn asset update can trigger automation for the wrong run or fail to triggerMatch tag keys and values against the intended materialization runs
A sensor does not advance its cursor after handling an eventLater evaluations can request duplicate runs or repeat old workTreat cursor updates as part of the sensor's event boundary
A sensor reuses a run key for different workThe daemon treats the later request as an existing run and skips itMake run keys stable for one intended request and unique across distinct work
A named dynamic partition set is read without an instance-backed partition storePartition selection and key validation fail because the current keys are unavailablePass the instance or a partition loading context that contains the dynamic partition store
A dynamic partition run request uses a key that is not in the named setThe requested partition cannot be resolved as a valid asset sliceAdd the key through a dynamic partition request before requesting work for it
A daemon cannot load the code location or an evaluation raises an errorNo new run requests are submitted for that evaluation and the tick records failureKeep definitions loadable and inspect tick and daemon health state
Two daemon processes of the same type run at onceBoth can evaluate the same state and submit duplicate workRun one daemon process for each daemon type and monitor heartbeat identity
The queued-run coordinator reaches a run or concurrency limitA valid run request stays queued until capacity becomes availableSet limits with expected workload and inspect queued-run state
The user-code server for a queued run is unreachableThe run is paused for that code location, retried when allowed, or marked failed after the retry limitKeep the code location available and set a retry policy that matches its recovery time
A queued run is blocked by tag or op concurrency limitsThe run does not launch even when the global run count has capacityReview tag and op pool limits with the run's concurrency needs
A multi-partitions definition uses an unsupported dimension type or an invalid static keyDefinition creation fails or a requested partition key is not validUse two supported dimensions and keep component keys valid for the multi-partition format
One executable asset definition contains different partition definitions without subset supportDefinition construction fails because one computation cannot safely handle the mixed partition scopeKeep one partition definition for the computation or enable valid asset subsetting
Conflicting asset specifications use the same asset key in one definitionThe asset definition is rejected as ambiguousGive each asset key one consistent specification
More than one materializable or observable asset definition uses the same key across code locationsThe workspace has an ambiguous asset definition and warns about the duplicateKeep at most one definition of each execution type for an asset key
Automation conditions for the same asset job name appear in multiple code locationsThe last-loaded condition is used, so the intended policy can be hiddenGive each automated asset job name one owning code location
A run config does not match the job or resource schemaRun creation or execution fails before the intended work startsBuild config from the job's schema or use RunConfig and validate the target partition key

Key files

FileWhy to read it
python_modules/…/definitions_class.pyDefines the project-level Definitions boundary and its composition and validation rules
python_modules/…/repository_definition.pyShows how the loaded project exposes jobs, instigators, assets, and the asset graph
python_modules/…/asset_spec.pyDefines the declarative properties that describe an asset and its automation intent
python_modules/…/assets_definition.pyConnects asset specifications to computation, checks, partitions, execution type, and selectable asset subsets
python_modules/…/asset_out.pyShows how one multi-asset output becomes an asset specification
python_modules/…/asset_decorator.pyShows the user-facing asset authoring model
python_modules/…/partitions_definition.pyDefines the common contract for partition keys, validation, subsets, and partition identity
python_modules/…/partitioned_config.pyMaps partition keys to run config and run tags
python_modules/…/asset_graph.pyBuilds the local asset graph from definitions, dependencies, checks, and execution sets
python_modules/…/base_asset_graph.pyDefines shared graph behavior for assets, checks, partitions, and automated asset jobs
python_modules/…/remote_asset_graph.pyShows how repository and workspace views expose asset, check, and automated job relationships
python_modules/…/graph_definition.pyExplains how op and graph dependencies form an execution flow and become jobs
python_modules/…/unresolved_asset_job_definition.pyExplains asset selections and how asset jobs become executable jobs
python_modules/…/job_definition.pyDefines executable jobs, asset selections, partitions, config, and job-level automation
python_modules/…/schedule_definition.pyDefines time-based evaluation and its run-request boundary
python_modules/…/sensor_definition.pyDefines event-based evaluation, targets, cursors, and sensor state
python_modules/…/run_config.pyDefines run configuration and the schema that validates it
python_modules/…/automation_condition.pyDefines composable asset automation intent
python_modules/…/dep_operators.pyDefines how dependency-aware conditions compare asset states across eligible dependencies
python_modules/…/check_operators.pyDefines how automation conditions use asset checks
python_modules/…/run_operands.pyDefines automation conditions based on run selection, run tags, and new materializations
python_modules/…/automation_condition_sensor_definition.pyConnects asset conditions to asset selections and run requests
python_modules/…/resource_definition.pyDefines scoped external resources and their lifecycle contract
python_modules/…/controller.pyShows how background services coordinate the loaded workspace
python_modules/…/daemon.pyDefines the common daemon loop, heartbeat, error recovery, and sensor daemon boundary
python_modules/…/sensor.pyShows the evaluation loop, cursor and tick state, run-key idempotence, and run submission boundary for sensors
python_modules/…/asset_daemon.pyShows the daemon boundary for asset-based automation, condition evaluation, cursor state, and asset run submission
python_modules/…/queued_run_coordinator_daemon.pyShows how queued run requests pass through limits, concurrency checks, code-location recovery, and launch