craftcms / nitro

Speedy local dev environment for @craftcms.
https://getnitro.sh
MIT License
178 stars 24 forks source link

PHP max time setting is ignored when running Craft queue from CLI #453

Closed GustavTaxen closed 2 years ago

GustavTaxen commented 2 years ago

Description

My nitro.yaml file contains

      php:
        max_execution_time: 5000

but when I run queue jobs using

     nitro craft queue/run

they time out after 300 seconds with the error message

The process "'/usr/local/bin/php' 'craft' 'queue/exec' '299578' '300' '1' '20' '--verbose=1' '--color=1'" exceeded the timeout of 300 seconds.

Additional info

GustavTaxen commented 2 years ago

Oh - my jobs are queued by a plugin that I just discovered has its own "time to reserve" setting that, apparently, is passed as a queue item parameter. My bad, please ignore!