Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SensorThings MQTT: Queue notifications to keep their order #302

Merged
merged 1 commit into from
Jan 11, 2024

Conversation

tcalmant
Copy link
Contributor

Integration tests were failing because sensiNact notifications and their handling were done in (at least) 2 threads, meaning that the order of sending of notification couldn't be guaranteed.

This commit uses a single thread that handles the publication of messages in the same order as the notifications, still using multiple threads to handle notifications and payload generation.

This should fix the CI test failures of the SensorThings MQTT project

Integration tests were failing because sensiNact notifications and their
handling were done in (at least) 2 threads, meaning that the order of
sending of notification couldn't be guaranteed.

This commit uses a single thread that handles the publication of
messages in the same order as the notifications, still using multiple
threads to handle notifications and payload generation.
@tcalmant tcalmant marked this pull request as ready for review January 11, 2024 15:22
@timothyjward timothyjward merged commit a9b7118 into master Jan 11, 2024
7 checks passed
@tcalmant tcalmant deleted the thomas/mqtt-fix branch January 11, 2024 21:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants