Closed wdbaruni closed 1 month ago
[!IMPORTANT]
Auto Review Skipped
Auto reviews are disabled on this repository.
Please check the settings in the CodeRabbit UI or the
.coderabbit.yaml
file in this repository. To trigger a single review, invoke the@coderabbitai review
command.You can disable this status message by setting the
reviews.review_status
tofalse
in the CodeRabbit configuration file.
This PR allows executing multiple job store write operations in a single atomic transaction. This done by optionally providing a transactional context to the operation, which will prevent automatic commit after each operation and delegates that control to the caller.
Usage Examples
A transaction per operation
This example is for the same behaviour we have today where each operation is committed automatically, which will continue to work
A single transaction for both operations
This is an example of the new behaviour where we can group multiple operations in a single atomic operation
Closes 3993