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

End up client after a defined number of messages #504

Open
tardich opened this issue Jan 30, 2025 · 0 comments
Open

End up client after a defined number of messages #504

tardich opened this issue Jan 30, 2025 · 0 comments

Comments

@tardich
Copy link

tardich commented Jan 30, 2025

Expected behavior

I'm using mqtt-cli to backup my zigbee2mqtt environment. In order to do so, I:

  1. publish an empty message to this topic: zigbee2mqtt/bridge/request/backup
  2. subscribe to zigbee2mqtt/bridge/response/backup

The content of this topic is the actual backup in json format

So the way I'm doing it is, from kubernetes, having a pod with two initContainers:

  1. publish
  2. subscribe

and the actual container which extracts the message received in the second initContainer, stored in a volume for that matter

In order for this container to run, the second initContainer must exit after it receives ONE message in the topic.

Actual behavior

The container (the initContainer in my case) waits indefinitely, which prevents the "extractor" to do its job.

To Reproduce

Steps

N/A

Reproducer code

N/A

Details

  • Affected MQTT CLI version(s): hivemq/mqtt-cli:4.36.0
  • Used JVM version: Irrelevant
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

No branches or pull requests

1 participant