|
@@ -12,9 +12,8 @@ def auto_hello():
|
|
print('hello world:[{}]'.format(now_time))
|
|
print('hello world:[{}]'.format(now_time))
|
|
|
|
|
|
|
|
|
|
-def start():
|
|
|
|
- scheduler = BackgroundScheduler()
|
|
|
|
- scheduler.add_jobstore(DjangoJobStore(), 'default')
|
|
|
|
|
|
+scheduler = BackgroundScheduler()
|
|
|
|
+scheduler.add_jobstore(DjangoJobStore(), 'default')
|
|
|
|
|
|
- scheduler.add_job(auto_hello, 'cron', day='*', hour=15, minute=30, replace_existing=True, id='test_job')
|
|
|
|
- scheduler.start()
|
|
|
|
|
|
+scheduler.add_job(auto_hello, 'cron', day='*', hour=15, minute=30, replace_existing=True, id='test_job')
|
|
|
|
+scheduler.start()
|