mjpieters commented on issue #11894:
URL: https://github.com/apache/airflow/issues/11894#issuecomment-719114086


   I suppose I could use the [`policy()` 
hook](https://airflow.apache.org/docs/stable/concepts.html#mutate-tasks-after-dag-loaded)
 to alter the sensor poke interval. I don't think asking people to alter the 
shipped Airflow code directly is a good idea, at any rate.
   
   As for honouring managed sensors' poke intervals, I was thinking along the 
lines of the [standard library `sched` module 
implementation](https://github.com/python/cpython/blob/3.9/Lib/sched.py), so a 
heapqueue (but using a `time.monotonic()` rather than `time.time()` to avoid 
running into DST issues).


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to