定时调外部任务开启api
This commit is contained in:
6
run_beat.py
Normal file
6
run_beat.py
Normal file
@@ -0,0 +1,6 @@
|
||||
#!/usr/bin/env python3
|
||||
from celery_app import app
|
||||
|
||||
if __name__ == '__main__':
|
||||
print("启动Celery Beat调度器...")
|
||||
app.worker_main(['beat', '--loglevel=info'])
|
||||
Reference in New Issue
Block a user