Spotiarr bullmq

From mralexsaavedra/spotiarr · View interactive version

Spotiarr bullmq is an AI agent skill from the GitHub repository mralexsaavedra/spotiarr. Trigger: BullMQ, queue, worker, job, cron, async job, enqueue. BullMQ patterns for spotiarr: real queue names, worker factory, job config, gotchas.

How to use this skill

Skill file

Activation Contract

Load when defining queues, writing workers, enqueueing jobs, or configuring cron jobs in apps/backend/.

Hard Rules

Real Queue Names

"track-download-processor"; // getTrackDownloadQueue()
"track-search-processor"; // getTrackSearchQueue()
"feed-sync-queue"; // getFeedSyncQueue()
"catalog-sync-queue"; // getCatalogSyncQueue()

Decision Gates

| Job type | Config |

| -------- | ---------------------------------------------------------------------------------- |

| Download | attempts: 3, exponential backoff delay: 5000ms, removeOnComplete: true |

| Search | attempts: 1 (no retry) |

| Job IDs | ${type}-${entityId} for dedup; ${type}-${entityId}-${Date.now()} for downloads |

Worker events to handle: completed (log) · drained (trigger SSE events / library scan) · failed (update entity status → Error, emit SSE).

Gotchas

References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.