Commit 7d6f8b69 by 宋鹏博

修改监控阈值

parent a0b1981f
...@@ -74,7 +74,7 @@ def aireview_task(): ...@@ -74,7 +74,7 @@ def aireview_task():
semantics_task_count = DButils_aireview().select_sql( semantics_task_count = DButils_aireview().select_sql(
"select count(*) from aireview.semantics_task where status = 0;") "select count(*) from aireview.semantics_task where status = 0;")
ideology_task_count = DButils_aireview().select_sql("select count(*) from aireview.ideology_task where status = 0;") ideology_task_count = DButils_aireview().select_sql("select count(*) from aireview.ideology_task where status = 0;")
if semantics_task_count[0][0] > 10000 or ideology_task_count[0][0] > 10000: if semantics_task_count[0][0] > 60000 or ideology_task_count[0][0] > 20000:
task_count(semantics_task_count[0][0], ideology_task_count[0][0], url=aireview_task_url) task_count(semantics_task_count[0][0], ideology_task_count[0][0], url=aireview_task_url)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment