More screenshots

    Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIDeepSeekDeepSeekMuseMuse+22 more

    Repair Stuck Job Leases

    1

    Repair workers that leave jobs stuck, process the same task twice, or let expired owners write results.

    $1

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned
    Repair Stuck Job Leases

    Repair Stuck Job Leases

    Example session with this skill installed

    Our background workers are crashing and leaving jobs stuck in 'processing' forever. Can you add a lease system and a way to recover these abandoned tasks?

    • Read your context and instructions
    • Compiled the repair stuck job

    I have analyzed your worker logic and implemented:

    1. A 'leased_until' column and fencing token.
    2. Atomic claim queries to prevent race conditions.
    3. A recovery script to re-queue jobs with expired leases.
    4. Crash tests to verify jobs are released after failure.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    Repair workers that leave jobs stuck, process the same task twice, or let expired owners write results.

    This skill traces claims, leases, heartbeats, timeouts, and completion writes. It adds bounded leases, fencing tokens, safe takeover, orphan recovery, and crash tests.

    • Recover abandoned jobs
    • Block stale workers
    • Prevent duplicate completion

    Ideal for queues, schedulers, imports, and distributed workers.

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse All Claude Skills.

    • Requires access to worker source code and database schemas.
    • Cannot fix logic errors within the job itself, only the lifecycle and lease management.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Money-back guarantee

    Doesn't do what its page promises? You get your money back.

    Trust & safety

    Security scan

    Security scan passed 3 months ago

    Permissions

    Terminal / Shell
    Read Files
    Write Files

    Permissions are limited to the active local workspace and are used to inspect user-supplied or local workspace files; create or modify bounded local fixes, tests, documentation, or review artifacts; run repository-supported local tests, checks, builds, or parsing commands. The skill package does not require bundled credentials, unrestricted external network access, or automatic production changes.

    Listed3 months ago
    Updated9 days ago

    What's inside

    Frequently Asked Questions

    It uses atomic database updates, fencing tokens, and bounded leases to ensure only one worker has valid ownership at any time.

    The skill identifies jobs in 'processing' states that have exceeded their lease duration and implements safe takeover logic to re-queue them.

    It works with most systems including PostgreSQL, MySQL, Redis, and common message queues by tracing the claim and lifecycle logic.