Join Slack
Powered by
Hi, is there any more detailed information availab...
# ask-community
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
Open in Slack
Previous
Next