Is it possible to use the `.deploy()` method on a ...
# ask-community
a
Is it possible to use the
.deploy()
method on a flow going to a
process
type work-pool given that an
image
parameter is required on the deploy method? My understanding is a process work-pool simply launches flow runs as sub-processes and therefore shouldn't require a Docker image.
j
Hello and thanks for the question! If you're using a process worker, it might make more sense to use the
flow.serve
method!
Or we recommend this guide for getting started hosting a served flow.
a
Gotcha! I will take a look at that guide. For my scenario, I want to leverage the features of a work-pool, such as concurrency limits and queue configuration, but don't want every flow to be executed inside its own container like a lot of the examples I've seen.
If I understand the
.serve()
method correctly, the benefits of the work-pool is lost. Which I assume is why the
process
work-pool type was added?
j
Thanks for the feedback on this. We're actively working on deployment and work pool UX so I'll flag your message to the team.
a
Sounds good - appreciate your help!