Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 17fa528

Browse files
authored
Wait longer for async process to spawn. (tensorflow#5307)
Sometimes it takes longer than 15 seconds, and even longer than 1 minute, to spawn and create the alive file.
1 parent 34beb7a commit 17fa528

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

official/recommendation/data_preprocessing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ def instantiate_pipeline(dataset, data_dir, batch_size, eval_batch_size,
452452
atexit.register(tf.gfile.DeleteRecursively,
453453
ncf_dataset.cache_paths.cache_root)
454454

455-
for _ in range(15):
455+
for _ in range(300):
456456
if tf.gfile.Exists(ncf_dataset.cache_paths.subproc_alive):
457457
break
458458
time.sleep(1) # allow `alive` file to be written

0 commit comments

Comments
 (0)