You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have just installed MailCoach from Spatie and I have this error when running enlightn:
Check 66/110: An appropriate timeout and retry after is set for queues. Failed
The queue timeout value must be at least several seconds shorter than the retry after configuration value. Your mailcoach-redis queue connection's retry after value is set at 660 seconds while your timeout value is set at 3600 seconds. This can cause problems such as your jobs may be processed twice or the queue worker may crash.
At config/queue.php: line(s): 64.
Documentation URL: https://www.laravel-enl
But if I set the timeout to 11 * 60 -3, I have now a new error :
The queue timeout value must be at least several seconds shorter than the retry after configuration value. Your redis queue connection's retry after value is set at 90 seconds while your timeout value is set at 657 seconds. This can cause problems such as your jobs may be processed twice or the queue worker may crash.
At config/queue.php, line 64.
I think the 90 comes from the default redis connection retry after parameter which is not used at all in horizon defaults array in mailcoach supervisors.
Test does not pass because I cannot see in src/Analyzers/Reliability/QueueTimeoutAnalyzer.php in method getTimeoutAndRetryAfter(array $config) a mapping between superivisor and connections.
Same here.
I have two connections, short one - 960' - and long one - 18060'. Settings in queue.php file.
And in horizon.php file I have two supervisors specified by connection -short, long - and that supervisors have timeout set one minute less that retry_after in queue.php file.
Versions
Description
I have just installed MailCoach from Spatie and I have this error when running enlightn:
So is a very good point, I have alerted Spatie about their default configuration https://github.com/spatie/laravel-mailcoach/discussions/853
But if I set the timeout to
11 * 60 -3
, I have now a new error :I think the
90
comes from the default redis connectionretry after
parameter which is not used at all in horizondefaults
array in mailcoach supervisors.Steps to Reproduce
Use this horizon configuration:
and use this queue configuration:
Expected behavior:
Test pass
Actual behavior:
Test does not pass because I cannot see in
src/Analyzers/Reliability/QueueTimeoutAnalyzer.php
in methodgetTimeoutAndRetryAfter(array $config)
a mapping between superivisor and connections.It only get all supervisors and all connections:
Additional Information
I have disable this check for the moment but it is a very good check I would like to keep running ;-)
The text was updated successfully, but these errors were encountered: