Felix Vemmer
11/14/2020, 10:56 PMpython3 get_medium_stats.py
in the terminal which executes these parts in the script…
flow.storage = Local(
path=os.path.abspath(python_file),
stored_as_script=True
)
flow.register(project_name="Social Media Automation")
flow.run_agent()
As expected I can see that the agent is running in the terminal.
Checkin the cloud I can also confirm that the local agent is running:
AGENT ID: 1132a46f-8016-4880-b028-6616487a1785
Finally, also running prefect get flows
shows the flow that I want to run: fa7eb2ff-1220-44bd-b302-14fe7f8e3a22 Social Media Automation
However, the flow is stuck in submission and doesn’t execute. However I noticed when I stop the script/local agent in the terminal with ctrl + c
at timestamp [2020-11-14 22:49:50,984] INFO - agent | Keyboard Interrupt received: Agent is shutting down.
I can see in the logs in the cloud that the process now kicks off 23:49:52 Beginning Flow run for 'Medium Stats Scraper'
.
So it seems that something is blocking the execution 🧐
I would very much appreciate any help, thanks!Chris White
show_flow_logs=True
if using flow.run_agent()
or --show-flow-logs
if starting from the CLI
- set PREFECT__LOGGING__LEVEL="DEBUG"
to get more verbose logging output from your flow run