Skip to content

Commit a80cae8

Browse files
committed
!fixup Dedup heartbeat runner code
1 parent 0e872e5 commit a80cae8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

command_runner/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -790,7 +790,7 @@ def __check_timeout(
790790

791791
begin_time = datetime.now()
792792

793-
heartbeat_thread(heartbeat, process)
793+
heartbeat_thread(process, heartbeat)
794794

795795
if encoding is False:
796796
output_stdout = output_stderr = b""
@@ -930,7 +930,7 @@ def _monitor_process(
930930
thread.daemon = True # was setDaemon(True) which has been deprecated
931931
thread.start()
932932

933-
heartbeat_thread(heartbeat, process)
933+
heartbeat_thread(process, heartbeat)
934934

935935
if encoding is False:
936936
output_stdout = output_stderr = b""

0 commit comments

Comments
 (0)