#467 Race Condition: notification_count increment without lock in activity_worker.py

closed medium Created 2025-12-17 01:11 · Updated 2025-12-17 02:51

Description

Edit
engine/services/activity_worker.py:252-254 increments notification_count without synchronization. In threaded environment, count += 1 is not atomic. Multiple threads can read same value and increment, losing counts. FIX: Use threading.Lock or atomic counter (e.g., itertools.count or threading.local).

Comments

Loading comments...

Context

Loading context...

Audit History

View All
Loading audit history...