Hi all, is there a way I can specify a task to run...
# prefect-community
i
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
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
a
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