Skip to content

Commit

Permalink
Wait longer for async process to spawn. (#5307)
Browse files Browse the repository at this point in the history
Sometimes it takes longer than 15 seconds, and even longer than 1 minute, to spawn and create the alive file.
  • Loading branch information
reedwm committed Sep 14, 2018
1 parent 34beb7a commit 17fa528
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion official/recommendation/data_preprocessing.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 17fa528

Please sign in to comment.