Back to Prefect

__init__

docs/v3/api-ref/python/prefect-runtime-__init__.mdx

3.6.30.dev3322 B
Original Source

prefect.runtime

Module for easily accessing dynamic attributes for a given run, especially those generated from deployments.

Example usage: ```python from prefect.runtime import deployment

print(f"This script is running from deployment {deployment.id} with parameters {deployment.parameters}")
```