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

Appearance settings

Commit 99bddf8

Browse filesBrowse files
[11.x] Document implicit commit usage with batches (#8234)
* Update queues.md * Update queues.md * wip --------- Co-authored-by: Taylor Otwell <taylor@laravel.com>
1 parent 83dc2c8 commit 99bddf8
Copy full SHA for 99bddf8

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎queues.md

Copy file name to clipboardExpand all lines: queues.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1280,7 +1280,7 @@ To dispatch a batch of jobs, you should use the `batch` method of the `Bus` faca
12801280
The batch's ID, which may be accessed via the `$batch->id` property, may be used to [query the Laravel command bus](#inspecting-batches) for information about the batch after it has been dispatched.
12811281

12821282
> [!WARNING]
1283-
> Since batch callbacks are serialized and executed at a later time by the Laravel queue, you should not use the `$this` variable within the callbacks.
1283+
> Since batch callbacks are serialized and executed at a later time by the Laravel queue, you should not use the `$this` variable within the callbacks. In addition, since batched jobs are wrapped within database transactions, database statements that trigger implicit commits should not be executed within the jobs.
12841284
12851285
<a name="naming-batches"></a>
12861286
#### Naming Batches

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.