Skip to content

Commit

Permalink
use nonlocal mem_tn variable
Browse files Browse the repository at this point in the history
  • Loading branch information
jfennick authored and mr-c committed Aug 31, 2023
1 parent 9accbc5 commit b1a1a0b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cwltool/job.py
Original file line number Diff line number Diff line change
Expand Up @@ -513,6 +513,7 @@ def process_monitor(self, sproc: "subprocess.Popen[str]") -> None:
mem_tm: "Optional[Timer]" = None

def get_tree_mem_usage(memory_usage: MutableSequence[Optional[int]]) -> None:
nonlocal mem_tm
try:
with monitor.oneshot():
children = monitor.children()
Expand Down

0 comments on commit b1a1a0b

Please sign in to comment.