Queue worker dies after a while. #106
-
I have deployed a queue worker via AWS Copilot Backend Service. It does work but it consistently dies after a while.
Dockerfile # syntax = docker/dockerfile:experimental
# Default to PHP 8.1, but we attempt to match
# Valid version values are PHP 7.4+
ARG PHP_VERSION=8.0
FROM serversideup/php:${PHP_VERSION}-fpm-nginx-v2.0.2:latest as base
# PHP_VERSION needs to be repeated here
# See https://docs.docker.com/engine/reference/builder/#understand-how-arg-and-from-interact
ARG PHP_VERSION
# See https://docs.docker.com/engine/reference/builder/#understand-how-arg-and-from-interact
RUN apt-get update && apt-get install -y \
git curl zip unzip rsync ca-certificates vim htop cron \
php${PHP_VERSION}-mysql php${PHP_VERSION}-bcmath \
php${PHP_VERSION}-swoole php${PHP_VERSION}-xml php${PHP_VERSION}-mbstring \
php${PHP_VERSION}-intl php${PHP_VERSION}-memcache php${PHP_VERSION}-memcached \
jpegoptim optipng pngquant gifsicle webp \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /var/www/html
COPY . /var/www/html
RUN composer install --optimize-autoloader --no-dev \
&& mkdir -p storage/logs \
&& php artisan optimize:clear \
&& chown -R webuser:webgroup /var/www/html \
&& sed -i 's/protected \$proxies/protected \$proxies = "*"/g' app/Http/Middleware/TrustProxies.php \
&& echo "MAILTO=\"\"\n* * * * * webuser /usr/bin/php /var/www/html/artisan schedule:run" > /etc/cron.d/laravel \
&& rm -rf /etc/cont-init.d/*
ENV SSL_MODE=off
CMD ["su", "webuser", "-c", "php artisan queue:work --tries=3"] What outputs this Notice? |
Beta Was this translation helpful? Give feedback.
Answered by
jaydrogers
Dec 27, 2022
Replies: 1 comment 4 replies
-
This will happen if Unfortunately I won't be able to debug unless if I have repeatable steps to reproduce and diagnose the issue. |
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by
jericopulvera
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This will happen if
exit 1
is returned. I wonder if this is an application specific error in yourRecalclateOrdersJob
?Unfortunately I won't be able to debug unless if I have repeatable steps to reproduce and diagnose the issue.