|
@@ -7,7 +7,7 @@ from typing import Union
|
|
|
arklog.set_config_logging()
|
|
|
|
|
|
|
|
|
-def fetch_outliers(file_name: str, column: Union[str, int], iri: str, outlier_service_url: str) -> Graph:
|
|
|
+def fetch_outliers(file_name: str, column: Union[str, int], iri: str, outlier_service_url: str, timeout: int) -> Graph:
|
|
|
""""""
|
|
|
try:
|
|
|
column = column if isinstance(column, int) else int(column)
|
|
@@ -16,7 +16,7 @@ def fetch_outliers(file_name: str, column: Union[str, int], iri: str, outlier_se
|
|
|
raise
|
|
|
parameters = {"iri": iri, "column" : column, "file" : file_name}
|
|
|
try:
|
|
|
- outliers_result = requests.post(outlier_service_url, json=parameters, timeout=60)
|
|
|
+ outliers_result = requests.post(outlier_service_url, json=parameters, timeout=timeout)
|
|
|
outliers_result.raise_for_status()
|
|
|
except requests.exceptions.InvalidSchema as e:
|
|
|
logging.error(f"Invalid schema for '{outlier_service_url}'.")
|