Skip to content

Commit

Permalink
Fix manager elaboration outside of a dependency ctx
Browse files Browse the repository at this point in the history
  • Loading branch information
tilk committed Dec 18, 2024
1 parent ee23cdf commit ab00afa
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions transactron/core/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,11 +305,13 @@ def maximal(group: frozenset[TBody]):
methods[transaction] = method

# step 5: construct merged transactions
for group in final_simultaneous:
name = "_".join([t.name for t in group])
with Transaction(name=name).body(m):
for transaction in group:
methods[transaction](m)
with DependencyContext(DependencyManager()):
DependencyContext.get().add_dependency(TransactionManagerKey(), self)
for group in final_simultaneous:
name = "_".join([t.name for t in group])
with Transaction(name=name).body(m):
for transaction in group:
methods[transaction](m)

return m

Expand Down

0 comments on commit ab00afa

Please sign in to comment.