Skip to content

Commit e57b1e7

Browse files
authored
Merge pull request #2893 from ROCm/ci_increase_timeout_for_multi_process_runner_test
Increase timeout for multi_process_runner_test subtest
2 parents 0eb0902 + d15617d commit e57b1e7

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tensorflow/python/distribute/multi_process_runner_test.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ def fn():
433433
return_output=True)
434434
mpr.start()
435435
with self.assertRaises(ValueError) as cm:
436-
mpr.join(timeout=10)
436+
mpr.join(timeout=20)
437437
self.assertGreater(
438438
sum(['Running' in msg for msg in cm.exception.mpr_result.stdout]), 1)
439439

@@ -479,6 +479,7 @@ def test_auto_restart_terminate(self):
479479
# Tasks terminated by the user should also be restarted.
480480

481481
def fn(counter):
482+
logging.warning(f"worker fn {counter.value}")
482483
counter.value += 1
483484
if counter.value == 1:
484485
time.sleep(100)
@@ -493,7 +494,8 @@ def fn(counter):
493494
args=(counter,),
494495
auto_restart=True)
495496
mpr.start()
496-
time.sleep(3)
497+
time.sleep(10)
498+
logging.warning("terminating worker!")
497499
mpr.terminate('worker', 0)
498500
mpr.join(timeout=20)
499501
self.assertEqual(counter.value, 2)

0 commit comments

Comments
 (0)