https://prefect.io logo
#prefect-community
Title
# prefect-community
i

Izu

06/13/2022, 11:28 AM
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
i

Izu

06/13/2022, 11:34 AM
a

Anna Geller

06/13/2022, 11:40 AM
it depends - are you asking for Prefect 2.0 or Prefect 1.0?
1.0 https://docs.prefect.io/ 2.0 https://orion-docs.prefect.io/ and search for concurrency limits
2 Views