I'm improving a set of gearman workers written in python. They're launched with the basic code:
gm_worker = gearman.GearmanWorker(server_address_list)
gm_worker.register_task('pipeline', pipeline_task_gm_worker)
gm_worker.work()
What I'm looking for is an alternate way to launch the worker so that it will monitor the filesystem for changes to the worker code and restart when it sees them. All the web frameworks support this for easier debugging. Is it possible to do this with gearman workers too?