Skip to content

Declarative jobsets plugin is always enabled, causing buildcompleted events to always get fetched from the DB #1337

Open
@delroth

Description

@delroth

Describe the bug
The plugin system is optimized so that it doesn't load a full event from the DB if no plugin is interested in it. Because the declarativejobset plugin says it's interested in everything, all the buildcompleted events are always loaded from the DB by hydra-notify, which is particularly annoying because each of those events are quite heavy to load (many DB queries for each event).

On hydra.nixos.org, this is causing hydra-notify to constantly stream 750Mbps of (seemingly) eval error text from PostgreSQL just to drop them on the floor and do nothing. Not very efficient.

To Reproduce
n/a

Expected behavior
The declarative jobset system isn't a drain on Hydra's resources when not in use.

Screenshots
n/a

Hydra Server:

hydra.nixos.org.

Metadata

Metadata

Assignees

No one assigned

    Labels

    buginfraIssue affecting the @NixOS/infra team

    Type

    No type

    Projects

    Status

    Worked Around

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions