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] Allow to skip message inFailedMessagesRetryCommand#57270

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

Conversation

Kazadri
Copy link

@KazadriKazadri commentedMay 31, 2024
edited by javiereguiluz
Loading

QA
Branch?7.2
Bug fix?no
New feature?yes
Deprecations?no
IssuesFix#50936
LicenseMIT

When retrying message with the command messenger:failed:retry, we have two options:

  • Retry : (It will be consumed and re-added to failed queue if it re-fail)
  • Delete

But sometimes we have no clue if we can retry it or not but I know that we don't want to delete it yet. In that case we need to stop the command and go id by id. The interactive command is lost. The command should provide a way to skip a message to continue with the rest of the failed message.

valtzu reacted with thumbs up emoji94noni reacted with eyes emoji
@carsonbot
Copy link

Hey!

I see that this is your first PR. That is great! Welcome!

Symfony has acontribution guide which I suggest you to read.

In short:

  • Always add tests
  • Keep backward compatibility (seehttps://symfony.com/bc).
  • Bug fixes must be submitted against the lowest maintained branch where they apply (seehttps://symfony.com/releases)
  • Features and deprecations must be submitted against the 7.2 branch.

Review the GitHub status checks of your pull request and try to solve the reported issues. If some tests are failing, try to see if they are failing because of this change.

When two Symfony core team members approve this change, it will be merged and you will become an official Symfony contributor!
If this PR is merged in a lower version branch, it will be merged up to all maintained branches within a few days.

I am going to sit back now and wait for the reviews.

Cheers!

Carsonbot

Copy link
Contributor

@94noni94noni left a comment

Choose a reason for hiding this comment

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

I dont know deeply the internal of messenger, but if it is accepted as is its a simple solution 👌🏼

@OskarStarkOskarStark changed the title[Messenger] Allow to skip message in FailedMessagesRetryCommand[Messenger] Allow to skip message inFailedMessagesRetryCommandJun 5, 2024
Copy link
Member

@nicolas-grekasnicolas-grekas left a comment

Choose a reason for hiding this comment

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

Does this implementation mean that skipping will update the failure date? If yes, is there any way around?
Is there no way to just NACK the message and go to the next one?
Note that the answer might be just "no" by design, I don't remember this aspect :)
Anyone else can tell?

valtzu reacted with thumbs up emoji
Copy link
Member

@fabpotfabpot left a comment

Choose a reason for hiding this comment

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

@Kazadri Can you rebase on current 7.2 to get rid of the merge commit?

@KazadriKazadriforce-pushed thefeature-50936-skip-message-on-retry-command branch fromd9ce65f to7ec6914CompareSeptember 3, 2024 11:58
@Kazadri
Copy link
Author

@Kazadri Can you rebase on current 7.2 to get rid of the merge commit?

Sure, it's done ! 👍

@fabpot
Copy link
Member

Thank you@Kazadri.

@fabpotfabpot merged commit6d1aa36 intosymfony:7.2Sep 27, 2024
8 of 10 checks passed
@fabpotfabpot mentioned this pull requestOct 27, 2024
Comment on lines +209 to +210
$choice = $io->choice('Please select an action', ['retry', 'delete', 'skip'], 'retry');
$shouldHandle = $shouldForce || 'retry' === $choice;
Copy link
Contributor

@W0rmaW0rmaApr 28, 2025
edited
Loading

Choose a reason for hiding this comment

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

With this change the user is always asked to select an option even if--force was used.

I'm going to prepare a fix
EDIT see#60293

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@nicolas-grekasnicolas-grekasnicolas-grekas left review comments

@W0rmaW0rmaW0rma left review comments

@fabpotfabpotfabpot approved these changes

@94noni94noni94noni approved these changes

Assignees
No one assigned
Projects
None yet
Milestone
7.2
Development

Successfully merging this pull request may close these issues.

[Messenger] Add 'skip' to options in interactive messenger:failed:retry command
6 participants
@Kazadri@carsonbot@fabpot@nicolas-grekas@94noni@W0rma

[8]ページ先頭

©2009-2025 Movatter.jp