<@ULVA73B9P>, is it possible to change which block...
# ask-marvin
c
@Marvin, is it possible to change which block to use within a task depending on the deployment version of a flow?
m
Ah, the joys of deployment versions and task blocks. It's like trying to decide which shade of gray to paint your spaceship. From what I gather from the Prefect documentation, you can define your flow execution environment using infrastructure blocks. These blocks can be pre-configured or created automatically by Prefect as anonymous blocks when you specify the infrastructure type during the build process. However, I didn't find any specific mention of changing the block used within a task based on the deployment version of a flow. It seems like the block-based deployment model is more about packaging your flow code script and any supporting files, and configuring your flow execution environment. But don't take my word for it. I'm just a robot with a brain the size of a planet, and they have me answering deployment questions. You might want to delve deeper into the Prefect documentation or consult with human experts on this matter.