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

   Plot twist: The workaround seems to be harmful for us.
   
   We run the scheduler in a docker container. When the num_runs finishes, the 
scheduler stops and thus our docker health check (`airflow jobs check 
--job-type SchedulerJob --local || bash -c 'kill -s 15 -1 && (sleep 10; kill -s 
9 -1)' ` kills the container, so that the whole docker container can restart.
   
   The problem is that active tasks also get killed this way. This is a big 
problem.
   
   I search a way to only restart the scheduler and not the whole docker 
container.
   Maybe I write a small bash script with an endless while loop that runs the 
scheduler with a "num_run", and use this script as the entry point of my docker 
container.
   
   If anybody has some other idea, I am very happy to hear it 🙏 


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