Skip to content

Commit 71e5c98

Browse files
authored
Merge pull request #249 from deploystackio/feat/job-queue
Feat/job queue
2 parents 5ad57b8 + 974c5fc commit 71e5c98

17 files changed

+1320
-100
lines changed

docs/development/backend/database.mdx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -292,9 +292,10 @@ When writing database operations:
292292
The database schema is defined in `src/db/schema.sqlite.ts`. This is the **single source of truth** for all database schema definitions and works across all supported database types.
293293

294294
The schema contains:
295-
1. Core application tables
296-
2. Plugin table definitions (populated dynamically)
297-
3. Proper foreign key relationships and constraints
295+
1. Core application tables (users, teams, MCP configurations, etc.)
296+
2. Background job queue tables (`queueJobs` and `queueJobBatches`) - see [Background Job Queue](/development/backend/job-queue)
297+
3. Plugin table definitions (populated dynamically)
298+
4. Proper foreign key relationships and constraints
298299

299300
**Important**: Only `schema.sqlite.ts` should be edited for schema changes. All databases use SQLite syntax.
300301

docs/development/backend/index.mdx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ sidebar: Getting Started
55
---
66

77
import { Card, Cards } from 'fumadocs-ui/components/card';
8-
import { Database, Shield, Plug, Settings, Mail, TestTube, Wrench, BookOpen, Terminal } from 'lucide-react';
8+
import { Database, Shield, Plug, Settings, Mail, TestTube, Wrench, BookOpen, Terminal, ListTodo } from 'lucide-react';
99

1010
# DeployStack Backend Development
1111

@@ -104,6 +104,14 @@ The development server starts at `http://localhost:3000` with API documentation
104104
>
105105
API endpoints for satellite registration, configuration management, and command orchestration with polling-based communication.
106106
</Card>
107+
108+
<Card
109+
icon={<ListTodo />}
110+
href="/deploystack/development/backend/job-queue"
111+
title="Background Job Queue"
112+
>
113+
Database-backed job processing system with persistent storage, automatic retries, and rate limiting for long-running background tasks.
114+
</Card>
107115
</Cards>
108116

109117
## Project Structure

0 commit comments

Comments
 (0)