1
0
mirror of https://github.com/IEEE-SB-Passau/pelican-deployment-system.git synced 2017-09-06 16:35:38 +02:00

add scheduler things

This commit is contained in:
2016-06-13 10:27:18 +02:00
parent 62e13d7edb
commit 9b2808d836
2 changed files with 27 additions and 4 deletions

View File

@@ -1,5 +1,6 @@
import os
import logging
from apscheduler.triggers.cron import CronTrigger
if __name__ == "__main__":
raise SystemExit("Not meant to be run directly!")
@@ -49,4 +50,12 @@ RUNNERS = {
}
}
# define crojobs as sequence of (runner, trigger) pairs, for cron triggers see
# http://apscheduler.readthedocs.io/en/latest/modules/triggers/cron.html
SCHEDULED_BUILD_JOBS = [
("website_master", CronTrigger(minute="*/5"))
]