def set_tracer_pid(self, ctx, tracer, pid): db_api.tracer_update(tracer, pid=pid)
def set_tracer_stat(self, ctx, tracer, running): running = bool(running) print "[LOG] setting tracer: %s running: %s" % (tracer, running) db_api.tracer_update(tracer, running=running)