AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified Apache-2.0 Self-run

Batch Job Poller

skill-xuanranl-loamwright-seo-skill-batch-job-poller · by XuanRanL

Supplemental recovery tool for orphan official-OpenAI image batches (batch is only ever used on the official-OpenAI fallback path; the primary openclawroot relay has no Batch API). The canonical image flow (openai-image-generator) runs realtime and does not require this skill. Use only to diagnose stuck batches or download images from a batch that completed after the main pipeline gave up.

No reviews yet
0 installs
20 views
0.0% view→install

Install

$ agentstack add skill-xuanranl-loamwright-seo-skill-batch-job-poller

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-xuanranl-loamwright-seo-skill-batch-job-poller)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
1mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Batch Job Poller? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Batch Job Poller (Supplemental — Recovery Only)

Status (as of 2026-05-21)

This skill is no longer part of the standard image flow. The new openai-image-generator skill consolidates submit + poll + download + realtime fallback into a single synchronous call via openai_image_pipeline.py.

This skill remains for two recovery scenarios only:

Scenario 1: Orphan batch recovery

If a prior pipeline run gave up on a batch (timeout, crash, user cancellation), the batch may still complete in OpenAI's queue. Use this skill to:

  • Poll the batch status
  • Download images if completed
  • Read error file if failed for root-cause diagnosis
  • Mark the batch as abandoned if expired (24h)

Example:

# Find orphan batches across all workspaces
for status_file in memory/workspace/*/batch_status.json; do
    batch_id=$(python -c "import json,sys; print(json.load(open('$status_file'))['batch_id'])")
    python -m scripts.openai.openai_batch_image_api --json poll $batch_id
done

# Download a specific orphan batch's images
python -m scripts.openai.openai_batch_image_api download batch_xxx \
    --output-dir memory/workspace/{task_id}/images

Scenario 2: Diagnose stuck or failed batches

If a current batch is reporting failed, get the errorfileid and read it:

python -c "
import sys
sys.path.insert(0, '.')
from scripts._core import credential_hub
import openai
client = openai.OpenAI(api_key=credential_hub.get_credential('openai'))
batch = client.batches.retrieve('batch_xxx')
if batch.error_file_id:
    print(client.files.content(batch.error_file_id).text)
"

The error file is JSONL — one line per failed request, with the OpenAI HTTP code and rejected parameter name. The 2026-05-20 incident on project-charlie post 37063 turned out to be a script bug (sent response_format) detectable only by reading this file.

Why this is no longer auto-scheduled

The previous design ran this skill every 15 minutes via hooks/scheduled.json. That pattern had three drawbacks:

  1. 15-minute granularity meant up to 15 min of latency after batch completion
  2. No fallback path if batch failed permanently
  3. Multiple background pollers competing across workspaces

The unified pipeline supersedes all three by polling at 60-second granularity inline within the article task, with a 25-minute timeout that triggers automatic realtime fallback.

If you have a hooks/scheduled.json entry for this skill, it can be removed — the inline pipeline handles standard cases. Keep the skill file for the recovery scenarios above.

See memory: [[reference-openai-image-pipeline]], [[feedback-batch-image-default-and-polling]]

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.