Carlos Velazquez
07/19/2023, 7:54 PM/usr/local/bin/docker-entrypoint.sh: line 416: exec: python: not found
Important: When trying to run the same flow as a Agents everything it's good.
Anyone knows how can i make this possible?Jake Kaplan
07/20/2023, 4:15 PMpython -m prefect.engine
Carlos Velazquez
07/20/2023, 4:22 PMECS_DEFAULT_CONTAINER_NAME = "prefect"
After that i saw the function: _container_name_from_task_definition
But i don't see it this in any part inside the documentations. if we have more than 1 task definitions we have to put this name default for the container. 🙃Jake Kaplan
07/20/2023, 6:27 PMCarlos Velazquez
07/20/2023, 7:21 PMJake Kaplan
07/20/2023, 7:46 PMCarlos Velazquez
07/20/2023, 7:51 PMWe run all of our flows with the ECS configuration on Prefect 1, and we've found that on Prefect 2 the ECS tasks "crash" consistently around 2 minutes. My team thinks there may be some internal timeout in the Prefect code and the issue may be related to the unresolved ticket linked below
however we resolved this with ECSWorkers but because ECSTask doesn't works with very long time flows. idk why! (?)YSF
07/21/2023, 12:35 AMJake Kaplan
07/21/2023, 12:36 PMCarlos Velazquez
07/21/2023, 1:23 PMlocals {
container_def_serverless_flow_runner = <<TASK_DEFINITION
[
{
"name": "mongodb",
...........
},
{
"name": "flow",
...........
]
TASK_DEFINITION
}
In this case i have 2 containers with the name mongodb
and flow
. But this not works. But when we changed the name of the container flow
for prefect
it's works.
So it's importante to say, if you have a single container you don't have any problem with that, you can have whatever name that you want.
i can realize for it, thankfully for this var in the library: ECS_DEFAULT_CONTAINER_NAME = "prefect"
So, that was just a blind test and work!locals {
container_def_serverless_flow_runner = <<TASK_DEFINITION
[
{
"name": "mongodb",
...........
},
{
"name": "prefect",
...........
]
TASK_DEFINITION
}
Jake Kaplan
07/21/2023, 1:25 PM"name": "flow"
was coming from, but I see it was from the original definition with ECSTaskCarlos Velazquez
07/21/2023, 1:29 PM"name": "flow"
it's just a name, like a mongodb
but we didn't know that prefect need it an specificly oneprefect
ECS_DEFAULT_CONTAINER_NAME = "prefect"