Step Decorators
These decorators are set at the step level, i.e. above the @step
decorator.
Notably, you can attach any of these decorators to the flow on the
command line as well without changing the code using the --with
option. For instance,
python myflow.py run --with retry --with batch:cpu=4
attaches a @retry
and @batch(cpu=4)
decorators to all steps of the flow.
Index
@environment
- define environment variables for containers.@batch
- run on AWS Batch.@card
- enable reporting.@catch
- catch errors.@conda
- define Conda dependencies.@pypi
- define PyPI dependencies.@kubernetes
- run on Kubernetes.@resources
- request resources.@retry
- retry errors.@secrets
- access secrets.@step
- define steps.@timeout
- avoid getting stuck.