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:
And deploy & manage as usual?

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

Kevin Kho

06/27/2022, 3:20 PM
For infinitely running flows it should be as simple as that