diff --git a/stats-backend/api2/tasks.py b/stats-backend/api2/tasks.py index 8f1cad5..b76d4e4 100644 --- a/stats-backend/api2/tasks.py +++ b/stats-backend/api2/tasks.py @@ -1856,7 +1856,7 @@ def bulk_update_node_statuses(nodes_data): if redis_updates: r.mset(redis_updates) - # Clean up duplicate consecutive statuses + #Clean up duplicate consecutive statuses with transaction.atomic(): subquery = NodeStatusHistory.objects.filter( node_id=OuterRef('node_id'),