summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeny Zinoviev <me@ch1p.io>2023-04-29 11:42:15 +0300
committerEvgeny Zinoviev <me@ch1p.io>2023-04-29 11:42:15 +0300
commite8f4478bfcfdececbdba44b22332f7eba8579edf (patch)
tree2c8cf7ab297bef59a50e5f23be46d2095cb15e02
parent9e3be40a444d7ee80b70b88b939decb036c21b1b (diff)
ipcam_server: fix aio tasks
-rwxr-xr-xsrc/ipcam_server.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ipcam_server.py b/src/ipcam_server.py
index 077dba6..8d91ce1 100755
--- a/src/ipcam_server.py
+++ b/src/ipcam_server.py
@@ -565,9 +565,9 @@ if __name__ == '__main__':
try:
scheduler = AsyncIOScheduler(event_loop=loop)
if config['fix_enabled']:
- scheduler.add_job(fix_job, 'interval', seconds=config['fix_interval'])
+ scheduler.add_job(fix_job, 'interval', seconds=config['fix_interval'], misfire_grace_time=None)
- scheduler.add_job(cleanup_job, 'interval', seconds=config['cleanup_interval'])
+ scheduler.add_job(cleanup_job, 'interval', seconds=config['cleanup_interval'], misfire_grace_time=None)
scheduler.start()
except KeyError:
pass