Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Messenger] expire delay queue and fix auto_setup logic#32631

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
Tobion merged 1 commit intosymfony:4.3fromTobion:expire-delay-queue
Jul 28, 2019

Conversation

@Tobion
Copy link
Contributor

@TobionTobion commentedJul 19, 2019
edited
Loading

QA
Branch?4.3
Bug fix?yes
New feature?yes
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed tickets#32588
LicenseMIT
Doc PR

Tested successfully

'routing_key_pattern' =>'delay_%exchange_name%_%routing_key%_%delay%',
'exchange_name' =>'delay',
'queue_name_pattern' =>'delay_queue_%exchange_name%_%routing_key%_%delay%',
'queue_name_pattern' =>'delay_%exchange_name%_%routing_key%_%delay%',
Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

we need to change the name because of the new x-expire argument which would otherwise cause a precondition failed error on redeclaring. but the name is an implementation detail and should not matter.

{
$routingKey =$this->getRoutingKeyForMessage($amqpStamp);

if ($this->shouldSetup()) {
Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

delay must ignore the auto_setup option as explained below

publicfunctionsetup():void
{
if (!$this->channel()->isConnected()) {
$this->clear();
Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

this should also happen when auto_setup is not enabled to reconnect when necessary. so I moved it outside setup()

}

$this->exchange()->declareExchange();
$this->getDelayExchange()->declareExchange();
Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

setup is called from messenger:setup-transports which should also create the delay exchange. this way, auto_setup can actually be disabled successfully even when using delays/retries

@TobionTobionforce-pushed theexpire-delay-queue branch 4 times, most recently from75f1f0e to26140f9CompareJuly 19, 2019 20:13
@Tobion
Copy link
ContributorAuthor

test failure unrelated

@nicolas-grekasnicolas-grekas added this to the4.3 milestoneJul 21, 2019
@TobionTobion requested a review fromweaverryanJuly 23, 2019 14:46
@TobionTobion merged commit7aee83a intosymfony:4.3Jul 28, 2019
Tobion added a commit that referenced this pull requestJul 28, 2019
…obion)This PR was merged into the 4.3 branch.Discussion----------[Messenger] expire delay queue and fix auto_setup logic| Q             | A| ------------- | ---| Branch?       | 4.3| Bug fix?      | yes| New feature?  | yes| BC breaks?    | no     <!-- seehttps://symfony.com/bc -->| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->| Tests pass?   | yes    <!-- please add some, will be required by reviewers -->| Fixed tickets |#32588| License       | MIT| Doc PR        |Tested successfullyCommits-------7aee83a [Messenger] expire delay queue and fix auto_setup logic
@TobionTobion deleted the expire-delay-queue branchJuly 28, 2019 14:14
fabpot added a commit that referenced this pull requestAug 18, 2019
…e normal ones by default (Tobion)This PR was merged into the 4.3 branch.Discussion----------[Messenger] make delay exchange and queues durable like the normal ones by default| Q             | A| ------------- | ---| Branch?       | 4.3| Bug fix?      | yes| New feature?  | no <!-- please update src/**/CHANGELOG.md files -->| BC breaks?    | no     <!-- seehttps://symfony.com/bc -->| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->| Tests pass?   | yes    <!-- please add some, will be required by reviewers -->| Fixed tickets |#32891| License       | MIT| Doc PR        |This also imrproves BC of#32631 by only adding the new expiry argument in case the delay queue name was not overwritten using the options. I will remove the checks in 4.4 again. Please merge this PR before releasing the new 4.3 version so that 32631 and this PR are part of one release.Commits-------e5ecda6 [Messenger] make delay exchange and queues durable like the normal ones by default
@fabpotfabpot mentioned this pull requestAug 26, 2019
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@weaverryanweaverryanAwaiting requested review from weaverryan

Assignees

No one assigned

Projects

None yet

Milestone

4.3

Development

Successfully merging this pull request may close these issues.

3 participants

@Tobion@nicolas-grekas@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp