Skip to content

Commit

Permalink
Remove the "run scheduler" log entry
Browse files Browse the repository at this point in the history
Repeated ad nauseam. And store the "nodemgr scheduler" command
in the class, instead of reseting it in every loop iteration.
  • Loading branch information
cvaroqui committed Sep 23, 2017
1 parent 549c1ba commit 8023401
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/osvcd_scheduler.py
Expand Up @@ -23,6 +23,7 @@ def run(self):
else:
devnull = "/dev/null"
self.devnull = os.open(devnull, os.O_RDWR)
self.cmd = [rcEnv.paths.nodemgr, 'schedulers']

while True:
self.do()
Expand All @@ -46,10 +47,9 @@ def do(self):
self.run_scheduler()

def run_scheduler(self):
self.log.info("run schedulers")
cmd = [rcEnv.paths.nodemgr, 'schedulers']
#self.log.info("run schedulers")
try:
proc = Popen(cmd, stdout=self.devnull, stderr=self.devnull,
proc = Popen(self.cmd, stdout=self.devnull, stderr=self.devnull,
stdin=self.devnull, close_fds=True)
except KeyboardInterrupt:
return
Expand Down

0 comments on commit 8023401

Please sign in to comment.