Skip to content

Improve cbs executor atomicity by using a single transaction - #2944

Open
tkalir wants to merge 7 commits into
data-for-change:new-cbs-formatfrom
tkalir:new-cbs-format-fix-cbs-import-atomicity
Open

Improve cbs executor atomicity by using a single transaction#2944
tkalir wants to merge 7 commits into
data-for-change:new-cbs-formatfrom
tkalir:new-cbs-format-fix-cbs-import-atomicity

Conversation

@tkalir

@tkalir tkalir commented Aug 4, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

@tkalir tkalir self-assigned this Aug 4, 2026
@tkalir
tkalir force-pushed the new-cbs-format-fix-cbs-import-atomicity branch 3 times, most recently from c94280e to ce53ec9 Compare August 4, 2026 19:00
@tkalir
tkalir force-pushed the new-cbs-format-fix-cbs-import-atomicity branch from 5bb8f44 to c291adb Compare August 13, 2026 18:22
@tkalir
tkalir requested a review from ziv17 August 13, 2026 18:32
@tkalir

tkalir commented Aug 13, 2026

Copy link
Copy Markdown
Collaborator Author

Hi @ziv17,

This PR puts the entire CBS import flow, including the safety-data import, under a single transaction.

I changed the safety-data flow so that it can use the existing session when called as part of the CBS pipeline, while retaining its standalone behavior by creating its own session and transaction when called separately.

I also added an integration test that forces a failure before the final commit and verifies that relevant tables haven't changed.

I’d appreciate any feedback, thanks

@ziv17 ziv17 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants