Chris Goddard

04/21/2023, 7:20 PM
Hey there - I’m jumping back into using Prefect again after a while and I’m trying to bring myself up to speed with all the changes. I did a bit of work with 2.x about 6-9 months ago - but looks like there’s been a fair amount of change with work-pools and workers. I’m getting a little confused about the relationship between agents and workers - are workers essentially a replacement for agents? or are they supposed to work together?


04/21/2023, 7:29 PM
Hey @Chris Goddard! Workers are indeed a replacement for agents. You can use workers the same way that you would use agents, but workers are designed to only execute flow runs on a single type of infrastructure (i.e. Kubernetes, Docker, etc) and they poll for flow runs from typed work pools. This section in the docs gives a good overview of workers.
🚀 2