diff --git a/any_parser/__init__.py b/any_parser/__init__.py index dfcfbf1..db5afb7 100644 --- a/any_parser/__init__.py +++ b/any_parser/__init__.py @@ -4,4 +4,4 @@ __all__ = ["AnyParser"] -__version__ = "0.0.23" +__version__ = "0.0.24" diff --git a/any_parser/any_parser.py b/any_parser/any_parser.py index bee3702..5da2042 100644 --- a/any_parser/any_parser.py +++ b/any_parser/any_parser.py @@ -24,7 +24,7 @@ PUBLIC_SHARED_BASE_URL = "https://public-api.cambioml.com" PUBLIC_BATCH_BASE_URL = "http://batch-api.cambioml.com" -TIMEOUT = 60 +TIMEOUT = 180 def handle_file_processing(func): @@ -399,7 +399,7 @@ def async_fetch( self, file_id: str, sync: bool = True, - sync_timeout: int = 60, + sync_timeout: int = 180, sync_interval: int = 5, ) -> str: """Fetches extraction results asynchronously. @@ -409,7 +409,7 @@ def async_fetch( sync (bool, optional): Whether to wait for the results synchronously. sync_timeout (int, optional): Maximum time to wait for results in - seconds. Defaults to 60. + seconds. Defaults to 180. sync_interval (int, optional): Time interval between polling attempts in seconds. Defaults to 5. diff --git a/pyproject.toml b/pyproject.toml index 60029a7..c7e490e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "any-parser" -version = "0.0.23" +version = "0.0.24" description = "Parser for all." authors = ["CambioML "] maintainers = ["Rachel Hu "]