- Home
- Skills
- DevOps & Cloud
- nex-arq-worker-pattern
Works with the AI tools you already use
Nex Arq Worker Pattern
Production-ready ARQ background workers for FastAPI with Redis heartbeats, cron jobs, and hardened systemd units.
Free
nex-arq-worker-pattern
Example session with this skill installed
Add a background job system to my FastAPI app. I need a daily 2 AM cleanup task and a way to check if the worker is running from an API endpoint.
- Read your context and instructions
- Compiled the nex-arq-worker-pattern
I've generated the arq-worker/ directory.
- Added
WorkerSettingswith a cron job scheduled for 02:00. - Created
/api/infra/statusroute to monitornex:worker:heartbeat. - Generated
{{APP_NAME}}-worker.servicewith strict system hardening.
Run sudo systemctl enable --now to start.
Connects securely to your tools. The creator never sees your data.
About this skill
Robust Background Processing for FastAPI
The Nex ARQ Worker Pattern provides a production-grade, asynchronous background job system designed specifically for FastAPI applications running on resource-constrained environments like Raspberry Pi or dedicated Linux VPS instances. It eliminates the complexity of Celery while providing more reliability than standard FastAPI BackgroundTasks by using a Redis-backed queue that survives application restarts.
What it does
- Generates a complete ARQ worker configuration with heartbeats and health monitoring.
- Provides a thread-safe, cached Redis pool for non-blocking job enqueuing from your API.
- Implements a persistent heartbeat system that allows your API to report worker health status.
- Configures hardened systemd service units for non-root execution and process reliability.
- Includes boilerplate for scheduled cron-style tasks (e.g., daily cleanups or data syncs).
Why use this skill
Standard Python job runners are often either too heavy (Celery) or too volatile (in-memory queues). This skill implements the "Nex Pattern": a battle-tested approach for multi-tenant SaaS apps that requires minimal memory, provides high visibility into worker health, and secures the process using Linux system hardening best practices. It ensures your background jobs are observable, restartable, and secure by default.
Built by Nex AI. More skills and info at nex-ai.be and slopsome.com.
How to install
Works the same in every agent - Claude, Cursor, Codex, Copilot and 20+ more.
- 1
Download the ZIP
Free skills download straight away. Paid skills unlock right after purchase.
- 2
Unzip into your skills folder
Every agent reads skills from one folder on your machine. Drop the unzipped folder in there.
- 3
Ask your agent to use it
Restart the agent if it was already running. It picks the skill up automatically - no config needed.
Skills folder by agent
Click the path to copy it. Create the folder if it does not exist yet.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill passes our trust checks below.
Security scanned
Passed our 8-point scan before listing
1 install
Downloaded by developers to date
Free forever
No account required to browse
Trust & safety
Security scanned
Verified clean 1 month ago
- Free to download with an account