Skip to content

fix: label multi-tenant pool settings and show pool runs in apify server status #1591

Open

Description

@l2ysho

Note

TL;DR — apify server status prints Memory, Idle timeout and Requests/run with the same
labels for everyone. For a multi-tenant Actor they describe the owner's pool, which the caller
can't change and doesn't pay for. The owner gets no Runs: line at all. The fix is a label and a
condition in one command.

Problem

  • P1. The three settings lines print unconditionally (status.ts#L95).
  • P2. For a single-tenant Actor they are the caller's own, and a task can override them.
  • P3. For a multi-tenant Actor they are the owner's pool. Tasks don't apply, and the caller pays per event only.
  • P4. The run lookup is skipped for every multi-tenant Actor (status.ts#L60), so the owner sees no runs even though the pool runs in their own account.
  • P5. --json carries the same four keys with nothing to say whose pool they describe.

Options

  • O1. Hide the three lines for a multi-tenant Actor unless the caller owns it. Removes the wrong
    reading, but a caller loses the memory and idle timeout that explain the Actor's latency, and
    --json either drops keys per viewer or disagrees with the text output.
  • O2. Keep the lines under a label that names the pool's owner: Pool (developer's account):, or
    Pool (your account): for the owner. Recommended. Nothing is hidden, and the label carries
    the one fact the caller is missing.
  • O3. Leave as is. What merged today. The caller reads the owner's pool as settings they control,
    which is also what the test report flagged as wrong.

Proposal

  • S1. Take O2: label the block by whose pool it is.
  • S2. List the pool runs for the owner, grouped by pool.
  • S3. Leave the single-tenant output as it is.

Notes

  • N1. The Tenancy: line already depends on the viewer and the pricing model, so status has the data O2 needs.
  • N2. GET /v2/acts/:id/runs?status=READY,RUNNING&deployment=… returns the pool runs, split into MULTI_TENANT_OWNER_PAID, MULTI_TENANT_PAYING_USERS and free.
  • N3. S2 applies under O1 and O3 as well. The owner seeing no runs is the same bug from the other side, not part of the label decision.
  • N4. apify runs ls shows the three pools indistinguishably. A Pool column there is a separate change.

Related

🤖 Generated with Claude Code

Activity

  1. added
    bug
    t-builders
    on Nov 17, 2026
  2. added a commit that references this issue on Nov 17, 2026
  3. kuntal1461 commented on Nov 17, 2026

    @kuntal1461
    Contributor

    Two follow-ups from looking into this:

    1. Owner check casing: opened fix: recognize the Actor owner regardless of username casing in server status #1594. GET /v2/users/me returns the username as registered (Jane.Doe) but GET /v2/acts/:id returns the owner in lowercase (jane.doe), so the === in describeTenancy (and poolOwnerUsername === username in fix: label multi-tenant pool settings and show pool runs in apify server status #1593) treats a mixed-case owner as a caller. fix: recognize the Actor owner regardless of username casing in server status #1594 adds a shared isActorOwner() that fix: label multi-tenant pool settings and show pool runs in apify server status #1593 can reuse.

    2. N4, Pool column in apify runs ls: I don't see this in fix: label multi-tenant pool settings and show pool runs in apify server status #1593 or any open PR. Would you accept a PR for it? Rough shape: read deployment from each run and show a Pool column (owner-paid, paying users, free; empty for single-tenant runs), plus the same field in --json. Happy to adjust to whatever labels fix: label multi-tenant pool settings and show pool runs in apify server status #1593 settles on.

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

    bugt-builders

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions