-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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
[Messenger] messenger:setup-transports: LOCK TABLE can only be used in transaction blocks #37179
Comments
Removing |
I get the same error message, even after removing the I also wanted to note that when executing the command a second time, it succeeds without errors for me. Downgrading doctrine/doctrine-bundle from 2.1 to 2.0.10 however fixes the problem for me. |
The same problem, on symfony 5.1 |
I can reproduce this error too:
Thanks! |
The same problem. symfony/messenger 5.1.3 as other Symfony components. |
…ndas) This PR was merged into the 5.1 branch. Discussion ---------- [Messenger] Run postgres setup trigger in transaction | Q | A | ------------- | --- | Branch? | 5.1 <!-- see below --> | Bug fix? | yes | New feature? | no <!-- please update src/**/CHANGELOG.md files --> | Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files --> | Tickets | Fix #37179 <!-- prefix each issue number with "Fix #", no need to create an issue if none exist, explain below instead --> | License | MIT | Doc PR | n/a <!-- required for new features --> This PR fix `messenger:setup-transports` command when using with ` doctrine/doctrine-bundle` version >= 2.1 Commits ------- 7ed93b4 Run postgres setup trigger in transaction
…pot) This PR was merged into the 5.2 branch. Discussion ---------- [Messenger] Fix Doctrine setup when using a migration | Q | A | ------------- | --- | Branch? | 5.2 <!-- see below --> | Bug fix? | yes | New feature? | no <!-- please update src/**/CHANGELOG.md files --> | Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files --> | Tickets | Fix #39928 <!-- prefix each issue number with "Fix #", no need to create an issue if none exist, explain below instead --> | License | MIT | Doc PR | n/a #38136 fixed running `messenger:setup-transports` (issue reported in #37179), but it breaks usage with `make:migration` (reported in #39928) as code is already executed in a transaction. This PR fixes both use cases. Commits ------- 42eeb44 [Messenger] Fix Doctrine setup when using a migration
Symfony version(s) affected: 5.1.0
Description
The
messenger:setup-transports
command doesn't work.How to reproduce
bin/console messenger:setup-transports -vvv
Additional context
I'm using Postgres. Here is the stack trace:
The text was updated successfully, but these errors were encountered: