fix celery async errors
@@ -19,7 +19,7 @@ def auto_approve_updates_task():
# scheduled task that checks and approves updates daily
agents = Agent.objects.only(
- "pk", "version", "last_seen", "overdue_time", "offline_time"
+ "pk", "agent_id", "version", "last_seen", "overdue_time", "offline_time"
)
for agent in agents:
agent.delete_superseded_updates()
@@ -46,7 +46,7 @@ def auto_approve_updates_task():
def check_agent_update_schedule_task():
# scheduled task that installs updates on agents if enabled
agents = Agent.objects.only(
- "pk", "version", "last_seen", "overdue_time", "offline_time"
+ "pk", "agent_id", "version", "last_seen", "overdue_time", "offline_time"
)
online = [
i
