@Marvin what's the equivalent of Deployment.apply() when using workers instead of agents
m
Marvin
03/12/2024, 9:19 PM
When upgrading from using agents to workers in Prefect 2.x, the way in which deployments are managed changes. Workers, which are a combination of agents and infrastructure blocks, poll a work queue for flow runs that are scheduled to start. However, unlike with agents, deploying a flow with a worker does not involve specifying an infrastructure block. This is because workers are typed and specify the default configuration for jobs submitted to that infrastructure.
For more information, refer to the Prefect documentation detailing the upgrade from agents to workers and the corresponding Deployment API documentation.
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.