Skip to content

Commit bfbad6b

Browse files
Fixes
1 parent f51d4ed commit bfbad6b

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

learning_orchestra_client/observe/observe.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
class Observer:
55
__TIMEOUT_TIME_MULTIPLICATION = 1000
6+
__MAX_WAIT_TIME = 240
67

78
def __init__(self, cluster_ip: str):
89
cluster_ip = cluster_ip.replace("http://", "")
@@ -22,6 +23,7 @@ def wait(self, name: str, timeout: int = None) -> dict:
2223
wait its finish with a
2324
wait method call.
2425
timeout: the maximum time to wait the observed step, in seconds.
26+
Default time is 4 minutes.
2527
2628
:return: If True it returns a String. Otherwise, it returns
2729
a dictionary with the content of a mongo collection, representing
@@ -44,6 +46,9 @@ def wait(self, name: str, timeout: int = None) -> dict:
4446
]
4547
}}
4648
]
49+
50+
timeout = self.__MAX_WAIT_TIME if timeout is None else timeout
51+
4752
return dataset_collection.watch(
4853
observer_query,
4954
full_document='updateLookup',

pipeline/titanic.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
dataset_csv = DatasetCsv(CLUSTER_IP)
99

1010
dataset_csv.insert_dataset_async(
11-
url="https://filebin.net/boniydu54k710l54/train.csv?t=s350xryf",
11+
url="https://drive.google.com/uc?export=download&id=1ccWBTDolhD50NaIIo50H4k_odvD_rlFr",
1212
dataset_name="titanic_training",
1313
)
1414
dataset_csv.insert_dataset_async(
15-
url="https://filebin.net/udtf7eogfgasqnx5/test.csv?t=h79pcy0l",
15+
url="https://drive.google.com/uc?export=download&id=1DG5biYaUH-MDhtCfDpZgiSn5Is1ZkMuv",
1616
dataset_name="titanic_testing"
1717
)
1818

0 commit comments

Comments
 (0)