mirror of
https://github.com/nikdoof/test-auth.git
synced 2026-01-31 08:28:15 +00:00
Allow the cron runner to be interrupted
This commit is contained in:
@@ -30,9 +30,9 @@ cron_class = getattr(mod, sys.argv[2])()
|
||||
|
||||
log.info("Starting Job %s in %s" % (sys.argv[2], sys.argv[1]))
|
||||
|
||||
#try:
|
||||
try:
|
||||
cron_class.job()
|
||||
#except:
|
||||
# log.error("Error executing job, aborting.")
|
||||
except KeyboardInterrupt:
|
||||
log.error("aborting.")
|
||||
|
||||
log.info("Job complete")
|
||||
|
||||
Reference in New Issue
Block a user