Skip to content

Synapse v1.142.0 logging context warnings #19165

Description

@Nemric

Hi :)
I can see a lot of logs like that :

2025-11-11 11:44:15,898 - synapse.logging.context - 105 - WARNING -  - run_in_background(UcxFX): deferred already completed but the function did not maintain the calling logcontext call_later (found sentinel)
2025-11-11 11:44:15,899 - synapse.logging.context - 105 - WARNING -  - Expected logging context call_later was lost
2025-11-11 11:45:32,895 - synapse.logging.context - 105 - WARNING -  - run_in_background(HtziJ): deferred already completed but the function did not maintain the calling logcontext call_later (found sentinel)
2025-11-11 11:45:32,895 - synapse.logging.context - 105 - WARNING -  - Expected logging context call_later was lost 
2025-11-11 11:46:55,987 - synapse.logging.context - 105 - WARNING -  - run_in_background(YzuBw): deferred already completed but the function did not maintain the calling logcontext call_later (found sentinel)
2025-11-11 11:46:55,988 - synapse.logging.context - 105 - WARNING -  - Expected logging context call_later was lost

I did see that there is some work done on this subject in #19090 and #19108


Synapse v1.142.0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    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