Queues and scheduling
Team Scheduling
Schedule and queue team runs alongside agents and workflows
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Agentium 4.0.0 · Upgrade from 3.x.
Schedule and queue team runs alongside agents and workflows
import { AgentQueue } from "@agentium/queue";
const queue = new AgentQueue({
connection: { host: "localhost", port: 6379 },
});
const { jobId } = await queue.enqueueTeamRun({
teamName: "research-team",
input: "Analyze Q4 results",
sessionId: "session-123",
priority: 1,
});
await queue.schedule({
id: "daily-analysis",
cron: "0 9 * * *",
timezone: "America/New_York",
team: {
name: "research-team",
input: "Generate daily market report",
},
});
import { AgentWorker } from "@agentium/queue";
const worker = new AgentWorker({
connection: { host: "localhost", port: 6379 },
agentRegistry: { analyst: analystAgent },
teamRegistry: { "research-team": researchTeam }, // new!
workflowRegistry: { pipeline: dataPipeline },
});
| Type | Payload | Handler |
|---|---|---|
agent | AgentJobPayload | agent.run(input, opts) |
team | TeamJobPayload | team.run(input, opts) |
workflow | WorkflowJobPayload | workflow.run(opts) |