Cms: Allow yii\queue::$ttr to be configurable

Created on 24 Jul 2018  路  3Comments  路  Source: craftcms/cms

On sites with a lot of elements, I'm seeing errors like this from the queue on extra long-running tasks (Resaving all entries, etc):

The process "/usr/local/bin/php /app/bin/craft queue/exec "2137" "300" "1" "" --color=" exceeded the timeout of 300 seconds.

Does it makes sense to expose this to GeneralConfig?

Most helpful comment

This would be a good thing to mention somewhere in the docs, like a special topic.

All 3 comments

You can configure it from config/app.php like so:

return [
    'components' => [
        'queue' => [
            'ttr' => 600,
        ],
    ],
];

Figured :) thanks.

This would be a good thing to mention somewhere in the docs, like a special topic.

Was this page helpful?
0 / 5 - 0 ratings