Mariano Pennini
10/05/2023, 3:08 PMJake Kaplan
10/05/2023, 3:15 PMMariano Pennini
10/05/2023, 3:23 PMaws ecs update-service
which triggers a rolling task restartMariano Pennini
10/05/2023, 3:23 PMJake Kaplan
10/05/2023, 3:26 PMMariano Pennini
10/05/2023, 3:27 PMJake Kaplan
10/05/2023, 3:31 PMdeployment.pull_steps
2. Image Based Worker (docker, ecs, etc.)
a. have your ci/cd pipeline build and update the image
b. update your work/pool deployment to use your image
c. then your worker will be deploying your image each time for each flow run (for example for ECSWorker it will deploy a new ECS task for each flow run)Jake Kaplan
10/05/2023, 3:38 PMJake Kaplan
10/05/2023, 3:38 PMJake Kaplan
10/05/2023, 3:48 PMMariano Pennini
10/05/2023, 4:03 PMJake Kaplan
10/05/2023, 4:59 PMprefect worker start --pool "my-ecs-pool"
If the work pool is of type ecs
, this command will dynamically spin up an ECSWorker
(as opposed to a process work pool, will lead to a ProcessWorker
being started)
An ECSWorker
is typed "ECS" because it reads from ECS works pools and DEPLOYS flow runs as ECS tasks. The Worker is just a process that can run anywhere, you could run it off your laptop for example. The worker as an ECS Service is likely just convenientJake Kaplan
10/05/2023, 5:02 PMMariano Pennini
10/05/2023, 5:48 PM