https://github.com/fostercommerce/ddev-craft-queue
Start a Craft queue worker automatically in DDEV
https://github.com/fostercommerce/ddev-craft-queue
Last synced: 8 months ago
JSON representation
Start a Craft queue worker automatically in DDEV
- Host: GitHub
- URL: https://github.com/fostercommerce/ddev-craft-queue
- Owner: FosterCommerce
- License: apache-2.0
- Created: 2024-03-20T13:35:01.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-20T13:37:45.000Z (about 2 years ago)
- Last Synced: 2024-03-20T14:40:04.922Z (about 2 years ago)
- Language: Shell
- Size: 64.5 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# fostercommerce/ddev-craft-queue
[](https://github.com/fostercommerce/ddev-craft-queue/actions/workflows/tests.yml) 
- [Introduction](#introduction)
- [Installation Started](#installation)
- [Configuration](#configuration)
## Introduction
This add-on allows you to start a Craft queue worker in a Craft's DDEV web container.
## Installation
```shell
ddev get fostercommerce/ddev-craft-queue
ddev restart
```
## Configuration
This plugin adds the `web-build/craft-worker.conf` file. To configure your queue workers, remove the `#ddev-generated` line, and update the file.
For example, to run multiple queue workers, update the file to
```
[program:craft-queue]
process_name=%(program_name)s_%(process_num)s
command=/usr/bin/php /var/www/html/craft queue/listen
autostart=true
autorestart=true
numprocs=4
stdout_logfile=/var/tmp/logpipe
stdout_logfile_maxbytes=0
redirect_stderr=true
stopwaitsecs=3600
```