Gracefully exiting wptdriver.exe

I’m running a private install powered by EC2 agents, and I’m wondering what the best process is for spinning down instances. Sometimes they need a restart, or I change settings and need to reboot, but I worry about doing so in the middle of a test that’s already running on an agent.

Is there a way to gracefully exit the wptdriver so that it will finish the current job, then close? Or so it won’t take any new tests once it is done with the current one? I think I’ve seen that if I kill the agent in the middle of a test then the test never gets ran, which is a worry of mine.

Thanks!

If you close wptdriver (not terminate) the UI will go away but it will continue running the test until it finishes (at some point I should keep the UI up but that was harder to pull off).

Thanks, will try that. Do I need to do anything to prevent the wptwatchdog from restarting it back up immediately?

If you close it gracefully the watchdog will also shut down. The watchdog only restarts it if it is terminated unexpectedly.