New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DEADLINE_EXCEEDED #140
Comments
@marickvantuil do you have any idea why?
|
I can't reproduce it! A few things:
In the queue log it also won't show me the Perhaps the container request timeout setting is still on 60s? |
@marickvantuil How is that even possible? The cloud run Request timeout is set to 300 seconds, but the log shows that the request was terminated after 60 seconds, citing the cloud run request timeout as the reason. |
Do you set a max_execution_time time by any chance in a php.ini/cloudrun.ini? |
Yes, that's my Dockerfile: FROM serversideup/php:beta-8.2-fpm-nginx-alpine
ENV S6_CMD_WAIT_FOR_SERVICES=1
ENV AUTORUN_ENABLED false
ENV AUTORUN_LARAVEL_STORAGE_LINK true
ENV PHP_FPM_PM_CONTROL ondemand
ENV PHP_FPM_PM_MAX_CHILDREN 100
ENV PHP_MAX_EXECUTION_TIME 300
ENV LOG_OUTPUT_LEVEL debug
RUN docker-php-ext-install bcmath
# Install Cloud SQL Proxy
RUN curl -o /usr/sbin/cloud-sql-proxy https://storage.googleapis.com/cloud-sql-connectors/cloud-sql-proxy/v2.7.1/cloud-sql-proxy.linux.amd64
RUN chmod +x /usr/sbin/cloud-sql-proxy
# Copy startup.sh in entrypoints directory
COPY --chmod=755 ./deployment/build/entrypoint.d/ /etc/entrypoint.d/
RUN pwd
RUN docker-php-serversideup-s6-init
# Copy website data
COPY backend/ /var/www/html
# Fix permissions
RUN chown -R nginx:nginx /var/www/html
I've already been in touch with the docker image creator here link and it doesn't seem an issue on the container side (also because i tried another image here without solving the problem). |
I've got a Cloud Run container running too with a similar image ( I'm not too much of an nginx expert so maybe just one of these config options suffices, but I've set these: Config options
Now my Cloud Run container runs longer than 60s but exits after 65s (which is the Perhaps the same applies to your setup? |
I believe it is because the serversideup/php image runs a reverse proxy which has a default timeout of 60s: https://serversideup.net/open-source/docker-php/docs/guide/using-s6-overlay |
This was the solution. |
Hello,
we are using this library with a cloud run laravel instance.
For some reasons CloudTasks is reading a deadline of 60s, even if the Job timeout is set to 300s.
Task content:
CloudTask logs error:
TestJob:
queue.php
Thanks for the support
The text was updated successfully, but these errors were encountered: