> For the complete documentation index, see [llms.txt](https://za.docs.rechtlogisch.de/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://za.docs.rechtlogisch.de/beta/setup/queue.md).

# Queue

Recommended QUEUE\_CONNECTION=database

{% stepper %}
{% step %}

### Stop Apache

Open XAMPP and stop Apache. Alternatively you can stop the Apache service in `services.msc`
{% endstep %}

{% step %}

### Check table `jobs` exists in database

Connect to database and check whether table `jobs` exists. If not run:

```powershell
php artisan migrate
```

{% hint style="info" %}
`jobs` table migration was added in [v2.25.11](https://za.docs.rechtlogisch.de/beta/setup/pages/-MG4FPiZ91v7aL1O3o0H#id-2.25.11-2025-09-23)
{% endhint %}
{% endstep %}

{% step %}

### Set `QUEUE_CONNECTION=database` in `.env`

{% code title=".env" %}

```
QUEUE_CONNECTION=database
```

{% endcode %}
{% endstep %}

{% step %}

### Download nssm

Download [nssm 2.24-101-g897c7ad](https://nssm.cc/download) and extract it.
{% endstep %}

{% step %}

### Install service

Open `cmd`, navigate where nssm has been extracted and run:

```
nssm install weric-queue
```

Set in Dependencies Tab:

Path `C:\xampp\php\php.exe`

Startup directory `C:\weric\api`

Arguments `artisan queue:listen`

<figure><img src="https://1132661469-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FS1JwLERtZ0izJ1T8Zmg4%2Fuploads%2Fe6BMjjXNHK4SweiZJau7%2Fnssm-1.png?alt=media&amp;token=7a936f43-bcae-43c5-ab7a-9ef7d02f2542" alt=""><figcaption></figcaption></figure>

Set in I/O tab:

Error (stderr) `C:\weric\api\storage\logs\queue.log`&#x20;

Confirm with click on `Install service`
{% endstep %}

{% step %}

### Open Services

Open `services.msc` and start `weric-queue`
{% endstep %}

{% step %}

### Start Apache

Open XAMPP and start Apache. Alternatively you can start the Apache service in `services.msc`
{% endstep %}
{% endstepper %}
