> ## Documentation Index
> Fetch the complete documentation index at: https://docs.agentium.in/llms.txt
> Use this file to discover all available pages before exploring further.

# Jobs and status

> Public jobs and status signatures and configuration in @agentium/queue 4.0.0.

Import these **6 exports** from `@agentium/queue`. Read the [jobs and status guide](/queue/overview) for setup and behavior, or return to the [package reference](/api-reference/queue).

A `?` marks an optional field. These are declarations for lookup; run the examples in the linked guide. Follow related-type links for Agentium types and source links for imported dependency types.

## AgentJobPayload

[Source](https://github.com/agentiumOS/agentium/blob/v4.0.0/packages/queue/src/job-types.ts)

```typescript theme={null}
export type AgentJobPayload = {
    type: "agent";
    agentName: string;
    input: string;
    sessionId?: string;
    tenantId?: string;
    userId?: string;
};
```

## JobPayload

[Source](https://github.com/agentiumOS/agentium/blob/v4.0.0/packages/queue/src/job-types.ts)

```typescript theme={null}
export type JobPayload = AgentJobPayload | WorkflowJobPayload | TeamJobPayload;
```

Related: [`AgentJobPayload`](/api-reference/queue/jobs#agentjobpayload), [`TeamJobPayload`](/api-reference/queue/jobs#teamjobpayload), [`WorkflowJobPayload`](/api-reference/queue/jobs#workflowjobpayload).

## JobStatus

[Source](https://github.com/agentiumOS/agentium/blob/v4.0.0/packages/queue/src/job-types.ts)

```typescript theme={null}
export type JobStatus = {
    jobId: string;
    state: "waiting" | "active" | "completed" | "failed" | "delayed";
    progress?: number;
    result?: RunOutput;
    error?: string;
    createdAt: Date;
    processedAt?: Date;
    finishedAt?: Date;
};
```

Related: [`RunOutput`](/api-reference/core/agent#runoutput).

## ScheduleInfo

[Source](https://github.com/agentiumOS/agentium/blob/v4.0.0/packages/queue/src/job-types.ts)

```typescript theme={null}
export type ScheduleInfo = {
    id: string;
    pattern: string;
    timezone?: string;
    next: Date;
};
```

## TeamJobPayload

[Source](https://github.com/agentiumOS/agentium/blob/v4.0.0/packages/queue/src/job-types.ts)

```typescript theme={null}
export type TeamJobPayload = {
    type: "team";
    teamName: string;
    input: string;
    sessionId?: string;
    tenantId?: string;
    userId?: string;
};
```

## WorkflowJobPayload

[Source](https://github.com/agentiumOS/agentium/blob/v4.0.0/packages/queue/src/job-types.ts)

```typescript theme={null}
export type WorkflowJobPayload = {
    type: "workflow";
    workflowName: string;
    initialState?: Record<string, unknown>;
    userId?: string;
    sessionId?: string;
    tenantId?: string;
};
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.