Skip to content

Commit a780173

Browse files
onponomarevhaifeng-jin
authored andcommitted
Increase oracle client timeout from 5 to 60 minutes. (#991)
1 parent 43b7c98 commit a780173

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

keras_tuner/distribute/oracle_client.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,14 @@
2121
from keras_tuner.engine import hyperparameters as hp_module
2222
from keras_tuner.engine import trial as trial_module
2323

24-
TIMEOUT = 5 * 60 # 5 mins
24+
# The timeout is so high to prevent a rare race condition from happening.
25+
# We need clients to wait till chief oracle server starts. This normally takes
26+
# a few minutes, but sometimes might take longer.
27+
# See https://github.com/keras-team/keras-tuner/issues/990 for more details.
28+
# Initially we didn't have any timeout. It was introduced to avoid tuner jobs
29+
# hanging forever if chief oracle stops responding.
30+
# See https://github.com/keras-team/keras-tuner/pull/957.
31+
TIMEOUT = 60 * 60 # 60 mins
2532

2633

2734
class OracleClient:

0 commit comments

Comments
 (0)