Navigation Menu

Skip to content
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

Allow yii\queue::$ttr to be configurable #3147

Closed
timkelty opened this issue Jul 24, 2018 · 3 comments
Closed

Allow yii\queue::$ttr to be configurable #3147

timkelty opened this issue Jul 24, 2018 · 3 comments

Comments

@timkelty
Copy link
Contributor

timkelty commented Jul 24, 2018

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?

@brandonkelly
Copy link
Member

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

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

@timkelty
Copy link
Contributor Author

Figured :) thanks.

@naboo
Copy link

naboo commented Sep 17, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants