Dylan McReynolds
08/04/2022, 3:46 PMKhuyen Tran
08/04/2022, 5:33 PMPeyton Runyan
08/04/2022, 6:01 PMDylan McReynolds
08/04/2022, 9:01 PMJust so I understood you correctly, you want to run a flow with different parameters from an external application, but found it redundant to create a deployment for each parameter?@Khuyen Tran yes, exactly right.
async def launch_prefect_flow():
try:
client = OrionClient(PREFECT_API_URL)
await client.create_flow_run_from_deployment(
"3d3974bd....",
parameters={"file_path": "/test/test.txt"})
except:
logger.exception("Exception launching prefect flow")
Peyton Runyan
08/05/2022, 1:18 PM