Good morning! :wave: I am curious what is the :pr...
# ask-community
a
Good morning! 👋 I am curious what is the P equivalent of
Sensors
from airflow. I see this helpful link[1] from Jeremiah -- essentially do the poke-sleep-poke yourself iiuc. Any changes since his post? Recently AF introduced the notion of SmartSensors[2] which removes a fair bit of work duplication (its fairly typical for me to have several workflows all polling on the same S3 success file). I have similar worries that such polling will hog up resources (e.g going over the resources in my ecs cluster) [1] https://prefect-community.slack.com/archives/CL09KU1K7/p1602088074097600?thread_ts=1602087747.097500&cid=CL09KU1K7 [2] https://airflow.apache.org/docs/apache-airflow/stable/smart-sensor.html
👀 1
j
Hi @Asif Imran - thanks for the question! You can see an example of how to create sensor-like tasks here: https://github.com/PrefectHQ/prefect/discussions/4156#discussioncomment-399063. I'll create a ticket to add that to the docs too.
a
Thanks so much Jenny. Will have a look and report back
I went over the link. Very convincing. Would love to read/learn more about what Chris wrote here... Seems like a major win over airflow 😅
Prefect doesn't really have a concept of "worker" in the way that Airflow does - the only cost to waiting / sleeping is a process or job in your environment, and there's no competition from other tasks for this process / job