many small fixes, typo and newlines... housekeeping!
This commit is contained in:
parent
5b33d500f3
commit
4193058957
4 changed files with 11 additions and 6 deletions
|
|
@ -3,6 +3,7 @@ from subprocess import Popen
|
|||
from subprocess import CalledProcessError
|
||||
from datetime import datetime as dt
|
||||
|
||||
#TODO: Move this to shell.py service file. this definitely is shell execution. (hanez)
|
||||
|
||||
class Command:
|
||||
def __init__(self, command, log):
|
||||
|
|
|
|||
|
|
@ -39,10 +39,10 @@ class Job:
|
|||
self.jobThreshold += 1
|
||||
|
||||
if self.jobThreshold >= serviceThreshold:
|
||||
self.log.d("ARGGHHH!!")
|
||||
self.handle_alarm(self.jobThreshold-serviceThreshold)
|
||||
self.log.d("Threshold reached!")
|
||||
self.handle_alarm(self.jobThreshold - serviceThreshold)
|
||||
|
||||
def handle_alarm(self, threholdOffset):
|
||||
def handle_alarm(self, thresholdOffset):
|
||||
pass
|
||||
|
||||
def handle_call(self):
|
||||
|
|
|
|||
|
|
@ -1,6 +1,13 @@
|
|||
from ..core import logger
|
||||
from ..core.daemon import Daemon
|
||||
|
||||
"""
|
||||
TODO: Think about, that daemonizing this software is not our goal but when we want to that, this needs a rewrite and
|
||||
should maybe move over to the daemon frontend. daemon.py will remain the the base for this and should stay in lib/core .
|
||||
Since a daemon it normally not a frontend we should think about how to handle this. When daemonizing a real frontend
|
||||
like "Lish" will make no sense but a frontend like "https" or "xmpp" could be useful anyway...
|
||||
"""
|
||||
|
||||
|
||||
class LinspectorDaemon(Daemon):
|
||||
def run(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue