Is there an existing issue for this?
Current behavior
When a comment reaction activity event is processed and the reaction no longer exists in the database (e.g. due to a race condition), the Celery task crashes with a TypeError and I see the error message attached below:
TypeError: cannot unpack non-iterable NoneType object
What I expect is that the activity task handles missing reactions gracefully and continues processing other activities.
File: apps/api/plane/bgtasks/issue_activities_task.py, lines 1152–1160 — .values_list(...).first() returns None when no reaction is found, and unpacking None into two variables raises TypeError
Steps to reproduce
- Add a reaction to a comment
-
- Remove the reaction before the Celery task processes the event (race condition)
-
- Observe the entire issue_activity task fails silently — no activity logged for that event
Environment
Production
Browser
Google Chrome
Variant
Cloud
Version
v0.17.0-dev
Is there an existing issue for this?
Current behavior
When a comment reaction activity event is processed and the reaction no longer exists in the database (e.g. due to a race condition), the Celery task crashes with a TypeError and I see the error message attached below:
TypeError: cannot unpack non-iterable NoneType object
What I expect is that the activity task handles missing reactions gracefully and continues processing other activities.
File: apps/api/plane/bgtasks/issue_activities_task.py, lines 1152–1160 — .values_list(...).first() returns None when no reaction is found, and unpacking None into two variables raises TypeError
Steps to reproduce
Environment
Production
Browser
Google Chrome
Variant
Cloud
Version
v0.17.0-dev