remove some celery tasks now handled by agent/go
@@ -38,15 +38,7 @@ app.conf.beat_schedule = {
},
"handle-agents": {
"task": "agents.tasks.handle_agents_task",
- "schedule": crontab(minute="*"),
- },
- "get-agentinfo": {
- "task": "agents.tasks.agent_getinfo_task",
- "schedule": crontab(minute="*"),
- },
- "get-wmi": {
- "task": "agents.tasks.get_wmi_task",
- "schedule": crontab(minute=18, hour="*/5"),
+ "schedule": crontab(minute="*/3"),
},
}
@@ -59,11 +51,10 @@ def debug_task(self):
@app.on_after_finalize.connect
def setup_periodic_tasks(sender, **kwargs):
- from agents.tasks import agent_outages_task, agent_checkin_task
+ from agents.tasks import agent_outages_task
from alerts.tasks import unsnooze_alerts
from core.tasks import core_maintenance_tasks, cache_db_fields_task
- sender.add_periodic_task(45.0, agent_checkin_task.s())
sender.add_periodic_task(60.0, agent_outages_task.s())
sender.add_periodic_task(60.0 * 30, core_maintenance_tasks.s())
sender.add_periodic_task(60.0 * 60, unsnooze_alerts.s())
