Unverified Commit 17fa5286 authored by Reed's avatar Reed Committed by GitHub
Browse files

Wait longer for async process to spawn. (#5307)

Sometimes it takes longer than 15 seconds, and even longer than 1 minute, to spawn and create the alive file.
parent 34beb7ad
......@@ -452,7 +452,7 @@ def instantiate_pipeline(dataset, data_dir, batch_size, eval_batch_size,
atexit.register(tf.gfile.DeleteRecursively,
ncf_dataset.cache_paths.cache_root)
for _ in range(15):
for _ in range(300):
if tf.gfile.Exists(ncf_dataset.cache_paths.subproc_alive):
break
time.sleep(1) # allow `alive` file to be written
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment