Skip to content

feat(platform): hold an automation agent node that ran out of memory for 10 and 30 minutes too #4723

Closed

Description

@yannickmonney

Summary

A task run whose sandbox ran out of memory is retried after 2, then 10, then 30 minutes (services/platform/backend/core/tasks/task_auto_retry.ts:30-50), so the session's other work can settle and an Admin has time to raise the limit. An automation agent node with the same failure is re-kicked after a fixed 2 minutes every time (RESOURCE_EXHAUSTED_REKICK_DELAY_MS = SANDBOX_ROOM_RETRY_CEILING_MS, services/platform/backend/core/automations/agent_retry.ts:79-83, used at core/automations/stepper.ts:2108-2109): the kick holds the start, and its op row has to stay inside the stalled-turn sweep's window, so it cannot wait longer. Verified on main at 73d03a9.

So an automation node's re-kicks all land within minutes of each other against the same memory limit, and its budget is likely spent before anything changes.

Suggested fix

Instead of a delayed kick, park the node with a wake time — suspend the run with a wakeAt and no op row — and kick when it wakes, on the task lane's schedule (resourceExhaustedRetryDelayMs).

Activity

  1. added
    priority: low
    improvement
    service: platform
    on Oct 10, 2026
  2. added
    agent-ready
    on Oct 29, 2026
  3. added a commit that references this issue on Oct 30, 2026
    2241d82
  4. added a commit that references this issue on Oct 30, 2026
    9f72d0e
  5. added 4 commits that reference this issue on Oct 30, 2026
    93e0e18
    fd567c0
    157cd4a
    6187dc1
  6. tale-code-bot commented on Oct 31, 2026

    @tale-code-bot
    Collaborator

    Landed on the feature line: feature train #5184 merged into release/0.6 on 2026-10-31 by rebase, and this issue's change is commit 6187dc1 (feat(platform): hold an out-of-memory agent node 2, 10, then 30 minutes, task TALE-132). It ships with Tale 0.6.0. GitHub closes an issue only for a commit on main, so the feature-train role closes it here.

  7. added 3 commits that reference this issue on Oct 31, 2026
    0aa2d7a
    a59c0fc
    97b75eb
  8. 4 remaining items

  9. added 13 commits that reference this issue on Nov 2, 2026
    dc6c4a9
    ac4585b
    93acfe5
    7a05e2a
    803dcdb
    39c4d0d
    0f5ab40
    d8bbda4
    28b71d2
    d88c60c
    1ed6384
    d98a9c7
    1daa5e9
  10. added a commit that references this issue on Nov 15, 2026
    8cb83d9
  11. added a commit that references this issue on Nov 23, 2026
    4095d76
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

    agent-readyimprovementpriority: lowservice: platform

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions