eclipse-paho / eclipse-paho/paho.mqtt.python

Programmatically way to determine if paho-mqtt processes queue is empty?

Open
#865 2 comments 0 reactions 0 assignees View on GitHub
Status: Available
Dominant language
Python
Stars
2.4k
Forks
742
Avg merge
12d 48m
Merged PRs (30d)
1

Description

Programmatically way to determine if paho-mqtt processes queue completed? For example, if I call client.disconnect(), the on_disconnect call back may need a bit more time to complete, is there a way I can test for this?

Contributor guide

Open the contributing guide

Research direction

Start by tracing client.disconnect() and the on_disconnect callback behavior in the client implementation. Determine how queued work and callback completion are represented, then define a documented, programmatic signal for completion and verify it with focused tests for disconnect timing.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
networking
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.