WebPagetest Forums
Gracefully exiting wptdriver.exe - Printable Version

+- WebPagetest Forums (https://www.webpagetest.org/forums)
+-- Forum: WebPagetest (/forumdisplay.php?fid=7)
+--- Forum: Private Instances (/forumdisplay.php?fid=12)
+--- Thread: Gracefully exiting wptdriver.exe (/showthread.php?tid=13498)



Gracefully exiting wptdriver.exe - VoodooShane - 01-20-2015 05:24 AM

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!


RE: Gracefully exiting wptdriver.exe - pmeenan - 01-21-2015 02:22 AM

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


RE: Gracefully exiting wptdriver.exe - VoodooShane - 01-21-2015 03:31 AM

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


RE: Gracefully exiting wptdriver.exe - pmeenan - 01-21-2015 03:40 AM

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