lucidumio commented on issue #55768:
URL: https://github.com/apache/airflow/issues/55768#issuecomment-3353988457

   A quick feedback, I just tried setting the `num_run` to 100. It worked to 
restart the scheduler, but the scheduler container would become "unhealthy" 
after the restart, which concerns me.
   
   Instead of changing this setting, we built a cron script to:
   
   #   - Monitor system memory usage
   #   - Restart Airflow scheduler if usage exceeds threshold AND no tasks are 
running
   #   - Force restart if memory exceeds critical threshold
   #   - Log all actions with timestamp and memory/task details
   
   We used docker-compose restart to bounce the container so the health status 
won't change. Hopefully this works till the fix is ready. 
   
   
   
   


-- 
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.

To unsubscribe, e-mail: [email protected]

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

Reply via email to