expephalon/core/cron.py
Klaus-Uwe Mitterer 27fe413d11 Some refactoring to get cron running
Moved dbsettings documentation to Gitlab wiki
2020-05-24 17:44:27 +02:00

22 lines
No EOL
524 B
Python

from core.classes.cron import Cronjob
from core.helpers.auth import clear_login_log
CRONDEFINITIONS = []
CRONFUNCTIONS = {}
### Demonstration Cronjob
def debug_job():
return "Test"
debug_cron = Cronjob("core.debug_job", "* * * * *")
# CRONFUNCTIONS["core.debug_job"] = debug_job
# CRONDEFINITIONS.append(debug_cron)
### Remove old entries from the login log
loginlog_cron = Cronjob("core.clear_login_log", "* * * * *")
CRONFUNCTIONS["core.clear_login_log"] = clear_login_log
CRONDEFINITIONS.append(loginlog_cron)