I have a couple of dags that utilize FileSensors. In both cases, it’s pretty random when a file may or may not get dropped in the monitored directory.
Currently the dags run daily, and the FileSensor timeout is set to 1 day. If no files are dropped in the monitored directores at all that day, the dag returns a failure. It’s not a huge deal, but seeing all that red in the dag history isn’t the most desirable look.
My first question is: Is it possible to force a success return if the FileSensor hits its timeout?
My second question is: Is there a totally different and better way to implement this solution?