Airflow, for instance, have <Sensors>. Sensors wai...
# prefect-community
g
Airflow, for instance, have Sensors. Sensors wait for something external to happen.
k
We don’t have sensors, but you could put the polling logic inside a task or a flow. Or you can make the event trigger the flow like i mentioned above
g
I suppose that is not as good as exposing blocking tasks as REST endpoints. I’ll need to find another product. I see that Google Workflows have callbacks ( https://cloud.google.com/workflows/docs/creating-callback-endpoints ) . It’s unfortunate that Prefect doesn’t have this.
a
@Gustavo Frederico we have a detailed walkthrough about how you can approach it here
Prefect provides several methods of approaching that problem, even if we don't call it sensors. Happy to answer your questions about this orchestration pattern - what's the use case you tried to solve with sensors? Are you waiting for some files to arrive?