> ## 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.

# Workers and progress

> Public workers and progress signatures and configuration in @agentium/queue 4.0.0.

Import these **3 exports** from `@agentium/queue`. Read the [workers and progress guide](/queue/worker) 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.

## AgentWorker

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

```typescript theme={null}
export declare class AgentWorker {
    constructor(config: WorkerConfig);
    start(): void;
    stop(timeoutMs?: number): Promise<void>;
}
```

Related: [`WorkerConfig`](/api-reference/queue/worker#workerconfig).

## bridgeEventBusToJob

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

```typescript theme={null}
export declare function bridgeEventBusToJob(eventBus: EventBus, job: any, runId: string): () => void;
```

Related: [`EventBus`](/api-reference/core/events#eventbus).

## WorkerConfig

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

```typescript theme={null}
export interface WorkerConfig {
    connection: {
        host: string;
        port: number;
        password?: string;
        db?: number;
        tls?: boolean;
    } | string;
    queueName?: string;
    concurrency?: number;
    agentRegistry: Record<string, Agent>;
    workflowRegistry?: Record<string, Workflow<any>>;
    teamRegistry?: Record<string, import("@agentium/core").Team>;
}
```

Related: [`Agent`](/api-reference/core/agent#agent), [`Team`](/api-reference/core/team#team), [`Workflow`](/api-reference/core/workflow#workflow).


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