Commit a025a52a authored by Andreas Valder's avatar Andreas Valder

removed most prints

parent ba77f61a
......@@ -51,17 +51,14 @@ while True:
p.poll()
if p.returncode == None:
continue
print('done', p.returncode)
p.wait()
procs.remove(p)
if psutil.cpu_percent() > 85:
print("SLEEP CPU")
time.sleep(0.1)
continue
j = api.worker_schedule(config['JOBS']['TYPES'])
if not j:
print("SLEEP NOJOB")
time.sleep(1)
continue
print("id: %i, data: %s, all: %s"%(j['id'],j['data'],j))
print("started jobid %i"%j['id'])
procs.append(subprocess.Popen(['./worker.py', str(j['id']), str(j['type']), str(j['priority']) , str(j['data']) ] ))
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment