Skip to content

Commit

Permalink
XX
Browse files Browse the repository at this point in the history
Signed-off-by: Matthew Ballance <[email protected]>
  • Loading branch information
mballance committed Jan 24, 2025
1 parent 01afa2a commit ea66719
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/dv_flow/mgr/package_def.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def getTask(self, name : str) -> 'TaskDef':
def mkPackage(self, session, params : Dict[str,Any] = None) -> 'Package':
ret = Package(self.name)

session.push_package(ret)
session.push_package(ret, add=True)

tasks_m : Dict[str,str,TaskCtor]= {}

Expand Down
4 changes: 3 additions & 1 deletion src/dv_flow/mgr/task_graph_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,10 @@ def __post_init__(self):
self._pkg_spec_s.pop()
self._pkg_m[PackageSpec(self.root_pkg.name)] = pkg

def push_package(self, pkg : Package):
def push_package(self, pkg : Package, add=False):
self._pkg_s.append(pkg)
if add:
self._pkg_m[PackageSpec(pkg.name, pkg.params)] = pkg

def pop_package(self, pkg : Package):
self._pkg_s.pop()
Expand Down

0 comments on commit ea66719

Please sign in to comment.