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

   > > 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.
   > 
   > You can add a script in your `healthcheck` to check for number of running 
tasks to ensure you only kill the scheduler when no tasks are running.
   
   This is exactly what we did in our bash script. It runs by a cron job every 
3 minutes to check the active tasks before restarting the scheduler. 


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