Skip to content

Commit

Permalink
Fix Scheduler
Browse files Browse the repository at this point in the history
  • Loading branch information
clavay committed May 14, 2019
1 parent 616e714 commit a938f10
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyscada/utils/scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -723,11 +723,11 @@ def stop(self, signum=None, frame=None):
"""
try:
BackgroundProcess.objects.filter(pk=self.process_id
).update(pid=0, last_update=datetime_now(), message='stopping..')
).update(pid=0, last_update=now(), message='stopping..')
# run the cleanup
self.cleanup()
BackgroundProcess.objects.filter(pk=self.process_id).update(pid=0,
last_update=datetime_now(),
last_update=now(),
message='stopped')
except OperationalError:
logger.debug('%s, DB connection lost in stop function' % self.label)
Expand Down

0 comments on commit a938f10

Please sign in to comment.