The debug_log file from the configuration was not being passed
to the setup_logging function. Causing no logs to be written
to to the log file.
This change, passes it file path to setup_logging.
Change-Id: Id84a6efdbd7ced98cb7774d09cf7068f988bf16e
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
Seeing as the power of Turbo-Hipster is in its pluggable design,
this change allows the configuration to be spit up allowing
each plug in to maintain it's own part of the configuration
including overwriting any default configuration.
There is a new configuration parameter 'conf_d', which is
mapped to a directory:
"conf_d": "/etc/turbo-hipster/conf.d"
worker_server.py grabs all files inside this directory and
attempts to load them. If it fails, the error is logged.
The motivating factor for this change for me, is that it allows
the deployment of turbo-hipster via puppet much simpler.
The base TH puppet class will create the config.json, whereas
there puppet TH plug in classes can pop extra configuration into
the conf_d directory.
Change-Id: Ied20b46d4caa642d130097f3fe019df9c0ec5851
Instead of the server being the main process allow it to be threaded
to make testing and importing easier.
Change-Id: I5950b29188ed41a280f467f06bb4d3eb1f65b12a
This makes each thread create their own git repo so threads don't
compete and cause race conditions
Change-Id: Ifaf1faf153d9b26a0ff302b00603573b04205b04