Skip to content

Commit 985972c

Browse files
committed
update docs
1 parent 2fbd94e commit 985972c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/basic-usage.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -81,15 +81,15 @@ Throwing an exception is a way to let the queue worker know that the job has fai
8181

8282
#### Using transactions
8383

84-
If you have to use transactions in our Jobs - this is a simple schema you can follow.
84+
If you have to use transactions in your Job - this is a simple schema you can follow.
8585

8686
!!! note
8787

88-
Due to the nature of the queue worker, [Strict Mode](https://codeigniter.com/user_guide/database/transactions.html#strict-mode) is automatically disabled for the database connection assigned to the Database handler.
88+
Due to the nature of the queue worker, [Strict Mode](https://codeigniter.com/user_guide/database/transactions.html#strict-mode) is automatically disabled for the database connection assigned to the Database handler. That's because queue worker is a long-running process, and we don't want one failed transaction to affect others.
8989

90-
If you use the same connection group in your Jobs as defined in the Database handler, then in that case, you don't need to do anything.
90+
If you use the same connection group in your Job as defined in the Database handler, then in that case, you don't need to do anything.
9191

92-
On the other hand, if you are using a different group to connect to the database in your Jobs, then if you are using transactions, you should disable Strict Mode through the method: `$db->transStrict(false)` or by setting the `transStrict` option to `false` in your connection config group - the last option will disable Strict Mode globally.
92+
On the other hand, if you are using a different group to connect to the database in your Job, then if you are using transactions, you should disable Strict Mode through the method: `$db->transStrict(false)` or by setting the `transStrict` option to `false` in your connection config group - the last option will disable Strict Mode globally.
9393

9494
```php
9595
// ...

0 commit comments

Comments
 (0)