8000 remove txn for diff calculation in pc pipeline by ajtmccarty · Pull Request #6594 · opsmill/infrahub · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

remove txn for diff calculation in pc pipeline #6594

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 3, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,11 @@ async def pipeline(message: messages.RequestProposedChangePipeline, service: Inf

await _gather_repository_repository_diffs(repositories=repositories, service=service)

async with service.database.start_transaction() as dbt:
destination_branch = await registry.get_branch(db=dbt, branch=message.destination_branch)
source_branch = await registry.get_branch(db=dbt, branch=message.source_branch)
async with service.database.start_session() as dbs:
destination_branch = await registry.get_branch(db=dbs, branch=message.destination_branch)
source_branch = await registry.get_branch(db=dbs, branch=message.source_branch)
component_registry = get_component_registry()
diff_coordinator = await component_registry.get_component(DiffCoordinator, db=dbt, branch=source_branch)
diff_coordinator = await component_registry.get_component(DiffCoordinator, db=dbs, branch=source_branch)
await diff_coordinator.update_branch_diff(base_branch=destination_branch, diff_branch=source_branch)

diff_summary = await service.client.get_diff_summary(branch=message.source_branch)
Expand Down
Loading
0