Skip to content

prefect.runtime

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

Example usage
from prefect.runtime import deployment

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