Граф коммитов

16 Коммитов

Автор SHA1 Сообщение Дата
Nick Hurley b071e525f0 Put run.ini in outdir instead of top-level workdir
This allows us to easily save a copy of the run.ini when archiving,
which will make debugging easier in the future.
2013-02-01 15:16:44 -08:00
Nick Hurley c804e76ce0 Modernize more except clauses 2013-02-01 15:00:56 -08:00
Nick Hurley 88aaa5540a Fix a few minor bugs in the worker
*The inital call to self.reset() would barf because self.runconfig
 didn't exist
*We were trying to put the logs in a directory under / instead of under
 the stone ridge root
*Debug logs in unit test mode were going to the global worker log,
 instead of the single-run worker log
*We would barf if the run-specific logs directory already existed
2013-02-01 14:25:48 -08:00
Nick Hurley 9cf1d26204 No longer need to use full path in worker
stoneridge.run_process already takes care of that for us now
2013-02-01 13:47:32 -08:00
Nick Hurley eb62629d65 Fix syntax error in worker 2013-02-01 11:30:44 -08:00
Nick Hurley 394e222774 Add support for running as a unit test
This lets things like the worker know not to call any subprocesses
2013-02-01 11:30:26 -08:00
Nick Hurley 6d051899bf Worker needs to return a value from handle()
Since handle() functions as an RPC, and all RPCs are expected to return
a value, we need to return something!
2013-01-31 15:18:38 -08:00
Nick Hurley a0a1364c85 Make config filename available
This is for programs that need to pass it to sub-programs (master,
cloner, worker).
2013-01-31 12:54:36 -08:00
Nick Hurley fb27bdf800 Daemonize queue listeners 2013-01-11 11:36:55 -08:00
Nick Hurley bf29569c03 Use the new config files everywhere 2013-01-11 08:48:18 -08:00
Nick Hurley d6d177f5d0 Use more well-known paths 2013-01-10 16:08:24 -08:00
Nick Hurley 473989f2d1 More work on better stuffs 2013-01-10 15:58:12 -08:00
Nick Hurley 5aaa87c6ec Make constant uppercase 2013-01-10 12:54:41 -08:00
Nick Hurley 3b5fcef9f8 Make queue config variables "hidden"
They're prefixed with _ so they don't pollute the general namespace that
is usable by subclasses. This also changes self.setup to take arguments,
namely those arguments sent to __init__ that aren't handled directly by
__init__. This is instead of using self.args (which has been renamed
self._args, and should stay hidden in the parent class unless absolutely
necessary).
2013-01-10 10:59:08 -08:00
Nick Hurley 6cf22a22ad Forgot to clear this out 2013-01-09 15:03:50 -08:00
Nick Hurley bf2b18486b Add worker process to replace cron job 2013-01-09 14:48:20 -08:00