Hi all, is there a way I can specify a task to run only once within a flow? I have noticed some of my tasks run concurrently, this is an issue when I am writing to a table
✅ 1
a
Anna Geller
06/13/2022, 11:31 AM
Sure, this is what concurrency limits are for
you can set a limit of 1 to only allow one active flow run of a given flow
(or one active task run with a given tag)
and to ensure your tasks run sequentially, you can use SequentialTaskRunner in Prefect 2.0 and LocalExecutor in Prefect 1.0