Channels
pacc-may-31-2023
prefect-ai
pacc-clearcover-june-12-2023
marvin-in-the-wild
data-ecosystem
geo-israel
pacc-june-14-2023
geo-japan
prefect-cloud
ppcc-may-16-2023
prefect-azure
prefect-docker
prefect-recipes
gratitude
geo-nyc
geo-bay-area
geo-boston
geo-london
geo-dc
geo-chicago
geo-berlin
geo-texas
geo-seattle
geo-colorado
prefect-community
data-tricks-and-tips
prefect-aws
prefect-gcp
introductions
find-a-prefect-job
prefect-dbt
random
events
ask-marvin
show-us-what-you-got
prefect-getting-started
prefect-integrations
prefect-contributors
best-practices-coordination-plane
announcements
prefect-server
prefect-ui
prefect-kubernetes
Powered by
Title
m
Michal Zawadzki
06/27/2022, 9:30 AM
Hi, is there any more detailed information available on running long-running flows in Prefect 2.0? Or are they exactly the same as regular ones and I can simply do
while True:
if x:
my_task()
And deploy & manage as usual?
j
James Sopkin
06/27/2022, 2:35 PM
Hi Michal, I've seen some proposals for listener tasks/flow runners to be implemented, but as of now, something like this could be achieved either by looping the task or flow(as you are doing) or by triggering a flow with lambda events. It may also be worth while just using a interval schedule clock to run the flow very frequently. I am not sure of your use case, but I hope this helps
https://medium.com/the-prefect-blog/event-driven-workflows-with-aws-lambda-2ef9d8cc8f1a
https://docs.prefect.io/api/latest/schedules/clocks.html
k
Kevin Kho
06/27/2022, 3:20 PM
For infinitely running flows it should be as simple as that
5 Views
#prefect-community
Join Slack