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

Set integer queue config #50579

Closed
ArtyshkoAndrey opened this issue Mar 15, 2024 · 1 comment · Fixed by #50580
Closed

Set integer queue config #50579

ArtyshkoAndrey opened this issue Mar 15, 2024 · 1 comment · Fixed by #50580
Labels

Comments

@ArtyshkoAndrey
Copy link

ArtyshkoAndrey commented Mar 15, 2024

Laravel Version

11.0.6

PHP Version

8.3.3

Database Driver & Version

No response

Description

Pls set (int) by default config: queue.connection.redis.retry_after.
But set int number in env file, php env() getting string. After start queue:work call crash carbon.

'retry_after' => (int) env('REDIS_QUEUE_RETRY_AFTER', 90),

Steps To Reproduce

Create new project. Set config. Set number 90. But Laravel get “90”

@driesvints
Copy link
Member

Thanks. I've sent in PR's to fix this but that's only for new installs. You'll have to add the integer cast like you suggested.

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

Successfully merging a pull request may close this issue.

2 participants