I would like to find a way to temporarily prevent new tasks from starting on a particular agent, so that I can take the agent down for maintenance or restart the agent process. Is there a way to prevent new tasks from starting, but allow running tasks to complete?
I know I could do it with a queue, but I use queues in a way that spans many agents.
I know I could probably also accomplish this be specifying resource consumption for all jobs that run on a particular agent, but this seems overly complicated, and hard to enforce.
Any other ideas?