From d629fc897f1e32344d74658b3086af8b68f1283e Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Mon, 15 Jan 2018 22:53:48 +0100 Subject: [PATCH] Start the cron scheduler only if there are crons configured --- platypush/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/platypush/__init__.py b/platypush/__init__.py index ee7bfc128..08f4a6ba6 100644 --- a/platypush/__init__.py +++ b/platypush/__init__.py @@ -112,7 +112,8 @@ class Daemon(object): backend.start() # Start the cron scheduler - CronScheduler(jobs=Config.get_cronjobs()).start() + if Config.get_cronjobs(): + CronScheduler(jobs=Config.get_cronjobs()).start() # Poll for messages on the bus try: