Skip to content

API collector: high CPU load even if no message are processed #2108

@ghost

Description

The API collector is consuming a lot of CPU, up to 100%, independent of the actual message load. strace shows, that the bot is always polling redis, for the stats (which are written after the process execution).

The problem is, that the bot declares

__collector_empty_process: bool = True

but this attribute is part of the Bot class:
__collector_empty_process: bool = False

and should therefore be called _Bot__collector_empty_process to be effective. And actually, this should just be called _collector_empty_process

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions