batch-job-poller

Solid

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.

AI & Automation 43 stars 13 forks Updated 3 days ago Apache-2.0

Install

View on GitHub

Quality Score: 86/100

Stars 20%
55
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# 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: ```bash # 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 error_file_id and read it: ```bash 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.batche...

Details

Author
XuanRanL
Repository
XuanRanL/loamwright-SEO-Skill
Created
2 weeks ago
Last Updated
3 days ago
Language
Python
License
Apache-2.0

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category