GitHub user michaelosthege edited a comment on the discussion: High CPU and 
database load caused by Airflow 3 dag-processor and scheduler

~According to the documentation, [`BaseSelector.select` is supposed to wait 
until some registered file objects become ready, **or the timeout 
expires**](https://docs.python.org/3/library/selectors.html#selectors.BaseSelector.select).~
~So it's going to continue _before_ that timeout if it can.~

~Maybe I'm missing something here, but in my understanding that's what a 
**timeout** is supposed to do.
What this loop needs IMO is a `sleep(max(0, interval - loop_duration))`.~

GitHub link: 
https://github.com/apache/airflow/discussions/53177#discussioncomment-13753563

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: [email protected]

Reply via email to