Skip to content

Sprites pool: Redis-flush edge cases (create fence on re-install, marker restore) #3803

Done

Description

@integry

Follow-up to #3800 (Sprites runner pool). These are rare Redis-loss edge cases from the maintainer review at b6a54cf, moved out of that PR so it could converge.

  1. The create fence is skipped on "first install" after a flush. When SET NX on :deployment succeeds and the provider listing shows no prefixed Sprite, size=0 is published. But a create from another worker that is still in flight isn't listed yet, so the deployment can go over PROPR_SPRITES_MAX (and the Free plan's 3). Keep the 171 s create fence whenever the marker was just re-created and the deployment could already have workers (for example, a digest marker derived from PROPR_INSTANCE_ID).
  2. The marker is restored only on snapshot. After a flush, running workers write :deployment back only in beginSnapshot. Before then, a worker that has neither a marker file nor PROPR_INSTANCE_ID can install a different random marker. Running workers then fail with "Conflicting Sprite marker", and their Sprites turn into invisible orphans. Restore the marker on every reserve or heartbeat (a cheap SET NX with the in-memory value), and refuse to mint a random marker while prefixed Sprites from an unknown marker exist. Or require PROPR_INSTANCE_ID for multi-worker Sprites deployments.

Acceptance: unit tests for both sequences, with a FLUSHALL in the middle of the create, plus a live check with two workers and a scratch Redis.

Activity

  1. propr-dev commented on Nov 29, 2026

    @propr-dev
    Contributor

    🤖 AI processing has started for this issue using codex agent with gpt-6.2-sol model.

    I'll analyze the problem and work on a solution. This may take a few minutes.

    Processing Details:

    • Agent: codex
    • Model: gpt-6.2-sol
    • Branch: 3803/gpt-6.2-sol-sprites-pool-redis-flush--20261129-0332-hjf
    • Base Branch: 3758-epic-runtime-abstraction-sc0
    • Worktree: issue-3803-20261129-0332-gpt-6.2-sol-hjf

    🔍 Track Task Execution

  2. integry commented on Dec 1, 2026

    @integry
    OwnerAuthor

    Done in #3886, which merged into the runtime epic; the epic merged into main with #3774 and ships in 0.9.4.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions