Merge pull request #52659 from rosa/suggestion-for-db-adapters-for-enqueue_after_transaction_commit

Change the suggestion about adapters and `enqueue_after_transaction_commit`
This commit is contained in:
Rafael Mendonça França 2024-08-20 14:47:45 -03:00 committed by GitHub
commit d8d5554f08
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 2 deletions

View File

@ -2845,8 +2845,7 @@ It can be set to:
* `:always` - Always defer the enqueue.
* `:default` - Let the queue adapter define the behaviour.
Active Job backends that use the same database as Active Record as a queue,
should generally prevent the deferring, and others should allow it.
Each Active Job backend defines its own default behaviour for this, with some adapters preventing the deferring and others allowing it, so make sure to check that as well if you're opting for `:default`.
Example: