Skip to content

Commit b1a1a0b

Browse files
jfennickmr-c
authored andcommitted
use nonlocal mem_tn variable
1 parent 9accbc5 commit b1a1a0b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cwltool/job.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -513,6 +513,7 @@ def process_monitor(self, sproc: "subprocess.Popen[str]") -> None:
513513
mem_tm: "Optional[Timer]" = None
514514

515515
def get_tree_mem_usage(memory_usage: MutableSequence[Optional[int]]) -> None:
516+
nonlocal mem_tm
516517
try:
517518
with monitor.oneshot():
518519
children = monitor.children()

0 commit comments

Comments
 (0)