Skip to content

Comment Reaction Activity Crashes Celery Task When Reaction Not Found #9175

@R0hit-Sriram

Description

@R0hit-Sriram

Is there an existing issue for this?

  • I have searched the existing issues

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

  1. Add a reaction to a comment
    1. Remove the reaction before the Celery task processes the event (race condition)
    1. 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

Metadata

Metadata

Assignees

Labels

planesync issues to Plane🐛bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions