Skip to content

Commit 67dd674

Browse files
committed
Update task.py
1 parent 4c8da63 commit 67dd674

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/controlflow/core/task.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,7 @@ def _context(self):
317317
yield self
318318

319319
def __enter__(self):
320+
# use stack so we can enter the context multiple times
320321
self.__cm_stack.append(self._context())
321322
return self.__cm_stack[-1].__enter__()
322323

0 commit comments

Comments
 (0)