> For the complete documentation index, see [llms.txt](https://docs.appmixer.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.appmixer.com/changelog/version-6/6/6.5/6.5.16.md). Agents can also search and read this documentation through its [MCP server](https://docs.appmixer.com/~gitbook/mcp).

# 6.5.16

2026-11-10

## Bug Fixes

* **Fixed the slow queue controller miscounting worker nodes and flooding the input queue** — The slow queue throttles how many of one user's parked messages it re-reads per run, and derives that limit from the number of worker nodes in the cluster. That count was always zero, so the limit came out as zero too — which the database treats as no limit at all. Messages parked for a user over a quota were therefore fed back uncapped, hundreds a minute, with the input queue staying congested behind them. Worker nodes are now counted correctly, and the limit can never fall below one message per user, so a failed count can no longer remove the cap.
* **Fixed the delayed messages job never finishing a run** — When the job could not deliver a message — because the owner was over their storage quota, or the push itself failed — it kept re-processing the same batch indefinitely, holding its lock and querying the database in a tight loop. Retries stopped for every user for as long as that lasted. A run now sets aside what it could not deliver and moves on, leaving those messages for the next run, and ends after `DELAYED_MESSAGES_MAX_CONSECUTIVE_FAILURES` consecutive failed deliveries (default 20).
* **Fixed counting documents leaking memory** — Every internal count left a database cursor open, so a process that counts often grew steadily until it ran out of memory. This compounded the delayed-messages loop above, which counts many times a second: together the two could exhaust a worker's memory within a couple of hours. Counts are now made without opening a cursor.
* **Fixed component uploads failing once enough had been made in a day** — Each upload looked up the files it replaces, one lookup per service, module and component in the archive, all at once — and those lookups also matched files that earlier uploads had already superseded, which are kept for a grace period. Past roughly fifty uploads in twenty-four hours this exceeded the database's limit on open cursors and every further upload failed. Superseded files are now left out of the lookups, and the lookups run a few at a time (`COMPONENT_UPLOADER_LOOKUP_CONCURRENCY`, default 5).
* **Fixed a failed flow update leaving the new steps' state behind** — When a flow is updated while running, the steps it adds are started fresh. If that update failed partway, the state those steps had already written stayed, so the next attempt started them on top of it — which is how republishing a draft over a running flow could fail repeatedly with an error from the Scheduler trigger, every retry failing the same way until the flow was stopped. A step added by an update now starts with a clean state, except where its state is explicitly persistent.
* **Fixed two requests publishing a draft into the same flow at once** — Publishing now takes a short-lived claim on the flow being overwritten and refuses a second publish with `409` while the first is in progress, rather than letting both proceed. The draft is also validated before the database transaction opens, so the transaction no longer stays open while a component's own configuration source is queried.

{% hint style="warning" %}
`POST /drafts/{flowId}/publish` can now answer `409` when another publish into the same flow is already in progress. Retry once the first one has finished.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.appmixer.com/changelog/version-6/6/6.5/6.5.16.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
