|
@@ -47,7 +47,7 @@ def delete_nonentity_table():
|
|
|
scheduler = BackgroundScheduler()
|
|
|
#添加任务,时间间隔2S
|
|
|
scheduler.add_job(delete_log, 'cron', hour='1', id='delete_job')
|
|
|
-scheduler.add_job(delete_nonentity_table, 'interval', minutes=10)
|
|
|
+scheduler.add_job(delete_nonentity_table, 'cron', hour='2', id='delete_nonentity_table')
|
|
|
scheduler.start()
|
|
|
print('任务创建成功')
|
|
|
|