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

# Queue Management

> Configure and manage Laravel queue workers for background job processing

## Overview

Create and manage Laravel queue workers to process background jobs. Workers run continuously to handle queued tasks like emails, file processing, and API calls.

## Features

<CardGroup cols={3}>
  <Card title="Worker Creation" icon="plus">
    Configure connection, queue type, and performance settings
  </Card>

  <Card title="Status Monitoring" icon="monitor">
    Track worker status and configuration details
  </Card>

  <Card title="Log Management" icon="logs">
    View worker logs and restart workers as needed
  </Card>
</CardGroup>

## Creating Workers

### Configuration

<Steps>
  <Step title="Fill form">
    Configure worker settings:

    * **Connection**: Database, Redis, etc.
    * **Queue Type**: Queue name (default: "default")
    * **Sleep**: Seconds between job checks (default: 3)
    * **Tries**: Retry attempts for failed jobs (default: 3)
    * **Timeout**: Max execution time per job (default: 120s)
    * **Run Always**: Continue during maintenance mode
  </Step>

  <Step title="Create worker">
    Click "Create worker" to deploy the configuration
  </Step>
</Steps>

<Info>
  **Default Settings**: Sleep 3s, Tries 3, Timeout 120s, Run Always disabled
</Info>

## Worker Management

### Status Display

<CardGroup cols={2}>
  <Card title="Always Running" icon="check">
    Green indicator - worker continues during maintenance
  </Card>

  <Card title="Normal Mode" icon="clock">
    Yellow indicator - worker stops during maintenance
  </Card>
</CardGroup>

### Actions

<AccordionGroup>
  <Accordion title="Restart Worker">
    Restart worker to apply configuration changes or resolve issues
  </Accordion>

  <Accordion title="View Logs">
    Access worker execution logs for debugging and monitoring
  </Accordion>

  <Accordion title="Delete Worker">
    Remove worker and stop job processing
  </Accordion>
</AccordionGroup>

## Configuration Options

<AccordionGroup>
  <Accordion title="Connection Types">
    **Database**: Uses database tables for job storage
    **Redis**: High-performance in-memory storage
    **SQS**: Amazon Simple Queue Service
  </Accordion>

  <Accordion title="Performance Settings">
    **Sleep**: Lower = faster job pickup, higher CPU usage
    **Tries**: Number of retry attempts before marking job as failed
    **Timeout**: Prevents jobs from running indefinitely
  </Accordion>

  <Accordion title="Run Always Mode">
    **Enabled**: Worker continues during maintenance mode
    **Disabled**: Worker stops when site is in maintenance
  </Accordion>
</AccordionGroup>
