Skip to content

Bug: insert_check_updates_in_event_queue trigger never fires events #1768

Description

@adityathebe

The condition for filtering status values uses incorrect boolean logic.

Problematic code:

IF NEW.status != 'healthy' OR NEW.status != 'unhealthy' THEN
    RETURN NULL;
END IF;

This condition always evaluates to TRUE, causing the function to return NULL for every status value:

  • When status is 'healthy': != 'unhealthy' is TRUE
  • When status is 'unhealthy': != 'healthy' is TRUE
  • Any other status: both conditions are TRUE

As a result, no events are ever inserted into event_queue regardless of status changes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    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