Skip to content

Wait for the broker schema agent to launch in startBrokerAgent - #254

Merged
cstns merged 1 commit into
mainfrom
8619-await-broker-agent-start
Oct 14, 2026
Merged

cstns merged 1 commit into
mainfrom
8619-await-broker-agent-start

Conversation

@cstns

@cstns cstns commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

Closes #253

Merge order: this, FlowFuse/driver-localfs#363 and FlowFuse/driver-k8s#415 go first and get released, then FlowFuse/flowfuse#8917 together with bumping the driver versions.

startBrokerAgent kicked off createMQttTopicAgent without awaiting it, so it resolved before the container existed. A suspend landing in that gap tries to stop a container that isn't there yet, swallows the error, and the container comes up afterwards with no record of it on the platform (FlowFuse/flowfuse#8619). It now awaits the create.

Worth knowing: the create pulls the agent image if it's missing, so the very first start on a host now waits for that pull before replying.

Same change as FlowFuse/driver-localfs#363, which I raced against the local app (0 orphans out of 24 together with FlowFuse/flowfuse#8917). I don't have a docker driver setup for the platform locally, so this one is from reading the code. Lint passes.

startBrokerAgent returned before the agent was launched, so a suspend arriving in that window found nothing to stop and the agent kept running with no record of it. The platform now needs this call to only resolve once the agent is actually up.
@cstns
cstns merged commit 36cd062 into main Oct 14, 2026
3 checks passed
@cstns
cstns deleted the 8619-await-broker-agent-start branch October 14, 2026 14:01
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.

Wait for the broker schema agent container before reporting it started

2 participants