Skip to content
This repository has been archived by the owner on Jun 2, 2023. It is now read-only.

SCENTRE-5889 Add availability of select special strategy for queue #10

Merged
merged 1 commit into from Feb 13, 2020

Conversation

TzepART
Copy link
Contributor

@TzepART TzepART commented Jan 31, 2020

No description provided.

@TzepART TzepART force-pushed the feature/SCENTRE-5889_extend_retry_sending_time branch 2 times, most recently from 36b491c to d8b2d05 Compare January 31, 2020 13:22

use Lamoda\QueueBundle\Strategy\Delay\DelayStrategyInterface;

class ResolverStrategyService
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Мне что-то название не нравится. Может DelayStrategyResolver?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Согласен, симпотичнее. Поправил

{
$strategyKey = $this->queuesConfiguration[$queueName] ?? self::DEFAULT_STRATEGY;

return $this->handlers[$strategyKey];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Если в массиве не будет нужного ключа, то будет TypeError. Стоит обработать, чтобы сразу была видна проблема + тестик

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Добавил обработку

@TzepART TzepART force-pushed the feature/SCENTRE-5889_extend_retry_sending_time branch from d8b2d05 to c97aa62 Compare February 3, 2020 11:20
@TzepART TzepART force-pushed the feature/SCENTRE-5889_extend_retry_sending_time branch from c97aa62 to fdb77cd Compare February 3, 2020 11:52
tests/unit/Service/DelayServiceTest.php Outdated Show resolved Hide resolved
@TzepART TzepART force-pushed the feature/SCENTRE-5889_extend_retry_sending_time branch from fdb77cd to 1edeba0 Compare February 4, 2020 08:49
@dedpikhto dedpikhto merged commit 5773ddd into master Feb 13, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants