I need help knowing how I can limit the number of ...
# ask-community
g
I need help knowing how I can limit the number of slack execution records in the prefect database, so that the database does not fill up. I want to see if I can limit some flows to that. or save more than 5 days. Thanks for the help you can give me
n
hi @Gustavo Zuniga Goni - what do you mean by
slack execution records
? if you'd like to manage concurrency of your tasks / flows / operations, you can do so like this the
concurrency
context manager will implicitly create the limits, and you can activate / configure them in the UI
r
@Nate I take it on this you would need a concurrency limit per flow and then use
with concurrency({flow_name})
n
Concurrency limits are implicitly created
https://docs.prefect.io/2.13.5/guides/global-concurrency-limits/#using-the-concurrency-context-manager the new global concurrency works a bit differently
r
created in an inactive state
how would you set the max to 1 and activate?
n
just like the example i linked, and then you can activate the limit in Settings > Concurrency