summaryrefslogtreecommitdiff
path: root/turbo_hipster/worker_manager.py
Commit message (Collapse)AuthorAgeFilesLines
* Fix hacking and requirementsJoshua Hesketh2015-06-041-2/+2
| | | | Change-Id: Ie7a36b0a7957f102b6a1195cdc7c0403cdd9545a
* Allow jobs to shutdown turbo-hipsterJoshua Hesketh2014-04-031-12/+38
| | | | | | | | This lets jobs turn off and exit turbo-hipster once they are done. This is useful for when using nodepool or when a job leaves the environment dirty and we can't run more jobs on this worker. Change-Id: I823be4196a5bf9ca92a14d9caf26163398a9434c
* Add in tests for ZuulManager and ZuulClientJoshua Hesketh2014-03-281-2/+8
| | | | | | Also tidy up unnecessary fakes. Change-Id: I165667faf61faa7fc06c10925db462e4650bda6a
* Register worker functions once we are connectedJoshua Hesketh2014-03-051-0/+7
| | | | | | | This also re-registers once a server appears ensuring reconnection is properly set up. Change-Id: I9b915482494d1b273991cb8bdd1b6ad963cf25f2
* Stop all tasks on shutdownJoshua Hesketh2014-03-051-1/+3
| | | | | | This stops all of the working jobs when turbo-hipster is closing down Change-Id: Ic160f75bd8222b233f81d269e4c035f95be11e47
* Improve gearman shutdown with extra thread lock checksJoshua Hesketh2014-03-051-17/+18
| | | | | | | | | When quiting turbo-hipster make sure all threads stop properly. Previously when the gearman_client disconnects the waitForServer method would release and the client would then wait for a job it isn't going to receive because turbo-hipster is shutting down. Change-Id: If9c13e4858c2281c021ca4540ec9475c4d46c615
* wait for server before registering functionJoshua Hesketh2014-01-101-0/+2
| | | | Change-Id: If2fd7c907c9e3bc1a2e779af9ae834d5a0d3bcc7
* Wait for gearman server in the execution threadJoshua Hesketh2014-01-061-3/+6
| | | | Change-Id: I319865700d0ae7133b64c4050daae84b0d04de3f
* Make sure we wait for a gearman serverJoshua Hesketh2013-11-211-1/+2
| | | | Change-Id: I4cc5f5b6fb50a77116aeede4a450bd8281a5a5a9
* Fix typo in debug loggingJoshua Hesketh2013-11-211-2/+2
| | | | Change-Id: I562b0c13c660bd65f562d3e5003c8f0e8c6a7a04
* Add a bunch of debugging infoJoshua Hesketh2013-11-211-1/+4
| | | | Change-Id: Idda0e7e79fa29aa458947356ddaed9d47d0a1d46
* Refactor th to have one gearman worker threadJoshua Hesketh2013-11-211-2/+66
| | | | Change-Id: I78f95a67b80ce0627b4a3bbb20578f3d16028714
* Fix manager sending job completeJoshua Hesketh2013-08-121-0/+1
|
* add in copyrightJoshua Hesketh2013-07-311-1/+14
|
* restructure project slightlyJoshua Hesketh2013-07-261-0/+69