https://prefect.io logo
p

Pedro Machado

05/05/2020, 3:53 AM
Hi. What's the recommended approach to implement something like an Airflow sensor? For example, one that will wait until a certain time or one that will poll an API or run a database query until it returns a certain value? Would a simple long running task with a loop and a delay work?
j

Jeremiah

05/05/2020, 4:02 AM
Hi @Pedro Machado! Yes, using that same pattern will work fine in Prefect.
p

Pedro Machado

05/05/2020, 4:12 AM
Thanks!