@job decorator creates an executable job from a function that invokes ops or graphs. Jobs represent the full execution plan for a set of operations.
Signature
Parameters
The name for the job. Defaults to the name of the decorated function.
A human-readable description of the job.
Resources that are required by this job for execution. If not defined,
io_manager will default to filesystem.Describes how the job is parameterized at runtime.
- If no value is provided, the schema is based on ops and resources.
- If a dictionary is provided, it will be used as the job’s run config.
- If a
RunConfigobject is provided, it will be used directly as the run config. - If a
ConfigMappingobject is provided, it defines the config schema and mapping. - If a
PartitionedConfigobject is provided, it defines a discrete set of config values that can parameterize the job.
A set of key-value tags that annotate the job and can be used for searching and filtering in the UI. If
run_tags is not set, then the content of tags will also be automatically appended to the tags of any runs of this job.A set of key-value tags that will be automatically attached to runs launched by this job. These tag values may be overwritten by tag values provided at invocation time. If
run_tags is set, then tags are not automatically appended to runs.Arbitrary information that will be attached to the JobDefinition and be viewable in the Dagster UI. Keys must be strings, and values must be Python primitive types or provided MetadataValue types.
A dictionary of string logger identifiers to their implementations.
How this job will be executed. Defaults to
multiprocess_executor.A set of hooks to attach to the job.
The default retry policy for all ops in this job. Only used if retry policy is not defined on the op definition or op invocation.
Defines a discrete set of partition keys that can parameterize the job. If this argument is supplied, the config argument can’t also be supplied.
A dictionary that maps Python objects to the top-level inputs of a job.
A sequence of strings identifying the owners of the job.
Returns
Type:JobDefinition
A job definition object.
Examples
Basic Job
Job with Resources
Job with Configuration
Partitioned Job
Job with Retry Policy
Job with Tags and Metadata
Job with Custom Executor
Related
- @op - Define operations
- @graph - Compose ops into reusable graphs
- Partitions - Define partitions for jobs
- Resources - Configure external services
