Block a node with multiple workers from accepting more tasks to completing a given task

I am running the Selenium test suite on instances of windows ec2. These instances should be restarted once every few days as a service to free memory, etc.

The problem is when I send the restart command to the slave station from Jenkins, I cannot be sure that the slave does not have work orders at that time, as the slave starts several executors.

Is there a way to tell node that as soon as job X starts, move the number of artists to 0? If not, is there a way to gracefully put a subordinate offline (that is: "complete all tasks in the queue, but not accept any new tasks")?

+4
source share
1 answer

(jenkins_url)/safeRestart- Allows you to complete all current tasks. new jobs will remain in the queue to run after the reboot completes.

-1
source

Source: https://habr.com/ru/post/1527470/


All Articles