Kamilly Victória Ruseler
08/06/2024, 2:15 PMMarvin
08/06/2024, 2:15 PMwhat could be causing this error?06 de agosto de 2024 às 10:00 (UTC-3:00) 130003.207 | ERROR | prefect.agent - Failed to get infrastructure for flow run 'b562e072-6a51-4e28-8a85-5b74bb96df00'. forge-prefect-agent 06 de agosto de 2024 às 10:00 (UTC-3:00) Traceback (most recent call last): forge-prefect-agent 06 de agosto de 2024 às 10:00 (UTC-3:00) File "/usr/local/lib/python3.11/site-packages/prefect/agent.py", line 471, in submit_run forge-prefect-agent 06 de agosto de 2024 às 10:00 (UTC-3:00) infrastructure = await self.get_infrastructure(flow_run) forge-prefect-agent 06 de agosto de 2024 às 10:00 (UTC-3:00) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ forge-prefect-agent 06 de agosto de 2024 às 10:00 (UTC-3:00) File "/usr/local/lib/python3.11/site-packages/prefect/agent.py", line 452, in get_infrastructure forge-prefect-agent 06 de agosto de 2024 às 10:
Kamilly Victória Ruseler
08/06/2024, 2:16 PMMarvin
08/06/2024, 2:16 PMECSTask
has been deprecated in favor of the ECS worker.
Here’s what you can do:
1. Upgrade to ECS Worker:
The ECSTask
class has been deprecated, and you should use the ECS worker instead. Refer to the upgrade guide for more information:
Upgrade Guide from Agents to Workers
2. Check Your Flow Definition:
Ensure that your flow definitions and configurations are updated to use the new ECS worker setup.
For more detailed information, you can visit the relevant integration documentation for ECS:
Prefect AWS ECS Integration
By following these steps, you should be able to resolve the error and get your flows to initiate properly.Nate
08/06/2024, 2:46 PMKamilly Victória Ruseler
08/06/2024, 3:09 PM