Manik Singh
02/23/2021, 3:14 AMprefect.tasks.prefect.flow_run.StartFlowRun
but where and how do i configure the access tokens for this function to run as expected?Zanie
StartFlowRun
task is actually for starting a flow run from a flow run. I believe you're just looking for https://docs.prefect.io/orchestration/concepts/flow_runs.html#core-clientManik Singh
02/23/2021, 3:56 AMZanie
flow_id
which you'd get when you register the flow. You can query for the latest unarchived run by flow name beforehand if you'd like. There's a user-contributed PR in progress to do this query for you (https://github.com/PrefectHQ/prefect/pull/4146) but you can also just look at the source code at prefect.cli.run.flow
to see an example of the query neededManik Singh
02/23/2021, 4:04 AMrun
cli command. Thanks for the guidance.