elbaro02/19/2021, 1:45 AM
... with Flow('flow') as flow: .. flow.register(project_name='project1') flow.run(parameters=dict(, ..)) flow.run(parameters=dict(, ..))
Clikcing Flow URL shows 404.
[2021-02-19 ...] INFO - prefect.TaskRunner | Task '..': Starting task run.. [2021-02-19 ...] INFO - prefect.TaskRunner | Task '..': Finished task run for task with final state: 'Success' ...
Amanda Wee02/19/2021, 2:05 AM
then go to the ui and start a flow run?
prefect agent local start
elbaro02/19/2021, 2:08 AM
and UI shows this agent.
Waiting for flow runs...
Amanda Wee02/19/2021, 2:11 AM
elbaro02/19/2021, 2:14 AM
is only intended to be used for local testing / “interactive mode”. To have a run show up in the UI requires that your run was created and managed by the backend. So if you first remove the two calls to
from your script, and then start up your agent + go to the UI to kick off a flow run as Amanda suggested, you should be good to go
elbaro02/19/2021, 2:15 AM
enough to run the flow? I have been searching how to provide parameters to
but could't find one.
registers the existence of the Flow with the backend; to run the flow you need to either use a Prefect Client to call
or navigate to the flow in the UI and click the “Run” button, which will allow you to provide whatever parameters you want
elbaro02/19/2021, 2:24 AM
flow.register(project_name='project-name') client = prefect.client.client.Client() client.create_flow_run(??, parameters=dict(..)) client.create_flow_run(??, parameters=dict(..))
flow_id = flow.register(...)
elbaro02/19/2021, 2:26 AM