Hi! I am wanting to map a task, but I also don't w...
# prefect-community
h
Hi! I am wanting to map a task, but I also don't want it to map concurrently in this specific instance. I want them to map one after another. Is there a way to do this?
k
Hey @Hannah Amundson, Using Prefect mapping without a DaskExecutor should execute mapped tasks in a queue-like fashion by default. Unless I'm misunderstanding your specific instance! Happy to discuss your use case.
h
thanks @Kyle Moon-Wright. what do you mean without a DaskExecutor?
k
Sure thing, we can specify how a tasks are run by declaring an executor in an environment for our flow. By default, a
LocalExecutor
at the task level, but we can alternatively specify a DaskExecutor to enable parallel execution of mapped tasks using the power of Dask. Here's an idiom that demonstrates these executors in action and describes parallelism within a flow.
h
thank you!