Skip to content

[DOCS] Task retention now applied, QUEUE_CLEANUP_INTERVAL deprecated #802

Closed

Description

Summary

The Go ADK now actually applies the TASK_RETENTION_* settings, and QUEUE_CLEANUP_INTERVAL no longer purges finished tasks (it is deprecated and unused).

Previously every completed/failed/cancelled task was deleted on each QUEUE_CLEANUP_INTERVAL tick (default 120s), regardless of TASK_RETENTION_MAX_COMPLETED_TASKS / TASK_RETENTION_MAX_FAILED_TASKS. Finished tasks are now retained per the retention limits and trimmed every TASK_RETENTION_CLEANUP_INTERVAL (default 5m).

Upstream PR: inference-gateway/adk#323 (fixes inference-gateway/adk#317)

Affected pages

  • Any ADK / A2A server configuration reference listing QUEUE_CLEANUP_INTERVAL (mark deprecated and unused)
  • Task management / task retention docs describing how long completed and failed tasks are kept

Acceptance Criteria

  • QUEUE_CLEANUP_INTERVAL documented as deprecated and unused
  • Task retention docs state that finished tasks are trimmed by TASK_RETENTION_MAX_COMPLETED_TASKS / TASK_RETENTION_MAX_FAILED_TASKS every TASK_RETENTION_CLEANUP_INTERVAL

Activity

  1. added
    documentation
    on Sep 26, 2026
  2. moved this to Todo in 2026on Sep 26, 2026
  3. edenreich commented on Sep 26, 2026

    @edenreich
    Contributor

    @claude Can you work on this?

  4. added theissue type on Sep 26, 2026
  5. inference-gateway-maintainer commented on Sep 26, 2026

    @inference-gateway-maintainer
    ContributorAuthor

    Claude finished @edenreich's task in 2m 19s —— View job • docs/issue-802-20260926-0042 • [Create PR ➔](https://github.com/inference-gateway/docs/compare/main...docs/issue-802-20260926-0042?quick_pull=1&title=Issue%20%23802%3A%20Changes%20from%20Claude&body=This%20PR%20addresses%20issue%20%23802%0A%0AGenerated%20with%20%5BClaude%20Code%5D(https%3A%2F%2Fclaude.ai%2Fcode)


    Done - PR #805

    • Gather context (only adk.md documents these vars; QUEUE_CLEANUP_INTERVAL was undocumented)
    • Mark QUEUE_CLEANUP_INTERVAL deprecated and unused
    • Add a Task retention section under Storage backends
    • Validate (bun run format, bun run lint:md, bun run build - all pass)
    • Commit + open PR

    Changes (adk.md)

    • New Task retention subsection under [Storage backends]: table for TASK_RETENTION_MAX_COMPLETED_TASKS (100), TASK_RETENTION_MAX_FAILED_TASKS (50), TASK_RETENTION_CLEANUP_INTERVAL (5m), and a paragraph on the per-tick trim of the oldest finished tasks beyond each cap.
    • QUEUE_CLEANUP_INTERVAL documented as deprecated and unused, with what it used to do (purged every finished task each 120s tick, ignoring the caps) and a note that it can be removed from config.
    • Configuration reference line now links to the new section instead of restating the retention defaults.

    Only the Go ADK page needed changes - the Rust/TypeScript ADK pages document a different A2A_QUEUE_* set with no cleanup or retention vars.

    Create a PR - already opened: #805
    | Branch

  6. moved this from QA to Done in 2026on Sep 26, 2026
  7. inference-gateway-releaser commented on Sep 26, 2026

    @inference-gateway-releaser
    Contributor

    🎉 This issue has been resolved in version 0.9.17 🎉

    The release is available on GitHub release

    Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationreleased

    Type

    Projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions