Parcourir la source

apscheduler_elab: 定时任务增加

Signed-off-by: binren <zhangbr@elab-plus.com>
binren il y a 4 ans
Parent
commit
2fda5795a6
1 fichiers modifiés avec 11 ajouts et 1 suppressions
  1. 11 1
      apscheduler_elab.py

+ 11 - 1
apscheduler_elab.py

@@ -11,6 +11,7 @@ class Config(object):
         week_push_one:2
         week_push_two: 3
         day_work_two: 4
+        day_work_three: 4
     """
     JOBS = [
         {
@@ -46,7 +47,16 @@ class Config(object):
             'args': '',
             'trigger': 'cron',
             'day_of_week': '*',
-            'hour': 10,
+            'hour': 8,
+            'minute': 30
+        },
+        {
+            'id': 'day_work_three',
+            'func': 'apscheduler_elab:Funcs.day_work_three',
+            'args': '',
+            'trigger': 'cron',
+            'day_of_week': '*',
+            'hour': 8,
             'minute': 30
         }
     ]