Michael Warnock
07/31/2021, 3:45 PMZach Angell
Zach Angell
Docker
storage
• Local agents automatically include their hostname as a label on startup. If your flow does not include the same hostname label as the agent (the flow only would only if you were using local storage and Prefect automatically added it), the agent will not try to run your flow. You can disable labels or manually add labels with CLI flags https://docs.prefect.io/orchestration/agents/local.html#labelsMichael Warnock
07/31/2021, 5:22 PM[2021-07-31 15:32:05,567] ERROR - agent | Flow run 04f3d831-52dd-455c-9823-75c777559dc3 has a `run_config` of type `LocalRun`, only `DockerRun` is supported
Your second 'pitfall' explains what's going on, but what kind of agent/run_config should I use for S3 storage and DaskExecutor (with coiled) execution, running the agent locally for testing, and on ECS for production?Michael Warnock
07/31/2021, 5:23 PMMichael Warnock
07/31/2021, 5:26 PMMichael Warnock
07/31/2021, 5:28 PMKevin Kho
task
to ECS so you don’t get a container in container setup.Michael Warnock
07/31/2021, 5:33 PMstored_as_script
- but I was hoping to have a generic storage definition I could share between flows, and with script storage, I have to specify the flow script one way or anotherKevin Kho
Michael Warnock
07/31/2021, 5:40 PMKevin Kho
Michael Warnock
07/31/2021, 6:12 PM__file__
isn't defined when the agent loads the flow (stored-as-script), which is annoying in terms of inferring the script path, but after specifying it manually, everything is working as expected. Thanks Zach and Kevin!