pikku-queue

Automate background job processing for Pikku apps with BullMQ and PgBoss adapters.

56|Updated Apr 18, 2021
One-click install
npx skills add https://github.com/pikkujs/pikku --skill pikku-queue
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pikku-queue
Source: https://github.com/pikkujs/pikku/tree/main/.claude/skills/pikku-queue
Command: npx skills add https://github.com/pikkujs/pikku --skill pikku-queue

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Pikku-Queue wiring provides a structured approach to wiring and managing background job processing within a Pikku app, enabling reliable asynchronous work.

Core Features & Use Cases

  • Wire and manage background workers via wireQueueWorker for deterministic processing.
  • Enqueue jobs with priority and retry options, track progress, and handle failures gracefully.
  • Integrate with BullMQ and PgBoss adapters to support Redis- and PostgreSQL-based queues across environments.

Quick Start

Install Pikku, register a worker with wireQueueWorker, and enqueue jobs using queue.add to start processing in the background.

Frequently Asked Questions about pikku-queue

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I coordinate background jobs in a Pikku app?

To coordinate background jobs in a Pikku app, you use the wireQueueWorker function to register workers and queue.add to enqueue tasks. This provides deterministic processing and reliable asynchronous work.

Can I use BullMQ and PgBoss for background queues with Pikku?

Yes, Pikku integrates with both BullMQ and PgBoss adapters. This allows you to use Redis-based or PostgreSQL-based queues to support background job processing across different environments.

How do I add job retries and track progress for background workers?

You can enqueue jobs with priority and retry options using queue.add. The framework tracks progress and handles failures gracefully to ensure reliable asynchronous task processing.

What is the best way to wire type-safe background workers in Pikku?

The best way to wire type-safe background workers is using the wireQueueWorker function within Pikku's function framework. This approach automates and coordinates background job processing deterministically.

Do I need Redis or PostgreSQL to run asynchronous task queues with Pikku?

You need either Redis or PostgreSQL to run background queues. Pikku supports both environments through its BullMQ and PgBoss adapters, allowing you to choose based on your existing infrastructure.