xasharma Please give me a code or please tell me which code I use
Deamonize php flarum queue:work --tries=5
or better make a containerized worker:
# docker build -t php8.1-worker-flarum -f ./Dockerfile.php8.1-worker-flarum .
FROM php:8.1-cli
ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/
RUN chmod +x /usr/local/bin/install-php-extensions && \
install-php-extensions curl dom fileinfo gd json mbstring openssl pdo_mysql tokenizer zip
WORKDIR /data/web
CMD ["php", "flarum", "queue:work", "--tries=5"]