Stephanie Vandenberg
12/28/2023, 9:21 PMprefect.context.get_run_context()
is giving me deployment_id = None
.
This is the way I'm deploying the flow to the cloud:
for config in flows_config:
deployment = Deployment.build_from_flow(
flow=config['flow'],
name=config['name'],
work_queue_name=work_queue_name,
storage=storage,
infrastructure=config['infrastructure'],
tags=config['tags'],
path="",
schedule=config.get('schedule'),
is_schedule_active=config['is_schedule_active']
)
deployments.append(deployment)
for deployment in deployments:
deployment.apply()
Uriel Mandujano
12/29/2023, 3:56 PMget_run_context
from inside of a flow or a task?