Skip to content

perf(platform): staging packs URL entries by request size, not by the bytes they download #4732

Closed

Description

@yannickmonney

Summary

sessionStageFiles packs stage entries into POSTs of at most 1.5 MiB of serialized JSON and 512 files (chunkStageFiles, services/platform/backend/core/node_only/sandbox/helpers/session_client.ts:1358-1407), and each POST runs under one 30 s deadline (postStageFiles, L1422-1425). A URL entry is a few hundred bytes of JSON whatever the size of the object runnerd must download (SessionStageFile.url, L1322-1334). One batch can therefore ask runnerd to fetch hundreds of large objects inside a single 30 s deadline — many large task attachments, or a large skill bundle — and the deadline fails the stage although every download is healthy. Verified on main at 73d03a9.

Suggested fix

Carry the expected size on URL entries (the blob row knows it) and pack URL entries by expected bytes as well (for example at most ~150–200 MB per POST), or scale the POST deadline with the batch's expected bytes. Unit-test chunkStageFiles with large URL entries.

Activity

  1. added
    priority: low
    perf
    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
    5f0f167
  4. added 4 commits that reference this issue on Oct 30, 2026
    918285f
    e5637b6
    2605fc6
    d333796
  5. 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 d333796 (perf(platform): pack stage requests by the bytes they download, task TALE-138). 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.

  6. added 4 commits that reference this issue on Oct 31, 2026
    f6b65a3
    47ab4b1
    a640b37
    4eb8b3c
  7. 3 remaining items

  8. added 13 commits that reference this issue on Nov 2, 2026
    71dc843
    87df732
    ba2ed6c
    815af00
    fa7cdb6
    351c929
    e1e97f2
    097d6c6
    607cf7f
    bbe85c7
    e873f54
    ee1ae04
    f3c3161
  9. added a commit that references this issue on Nov 15, 2026
    b5a4021
  10. added a commit that references this issue on Nov 23, 2026
    8c85a84
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-readyperfpriority: lowservice: platform

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions