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:
@@ -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"))
|
||||
|
||||
]
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user