Hello everyone! I'm running a flow and I'd like to...
# ask-community
s
Hello everyone! I'm running a flow and I'd like to know why
prefect.context.get_run_context()
is giving me
deployment_id = None
. This is the way I'm deploying the flow to the cloud:
Copy code
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()
u
hey @Stephanie Vandenberg, after you make the deployment, how are creating the flow runs from the deployment? and are you using
get_run_context
from inside of a flow or a task?