Skip to content

Commit

Permalink
Merge branch 'master' into external-pr-intermediate
Browse files Browse the repository at this point in the history
  • Loading branch information
mathialo authored Dec 13, 2023
2 parents 00a8c8d + a21efcb commit 96a3ceb
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,19 @@ Changes are grouped as follows
- `Fixed` for any bug fixes.
- `Security` in case of vulnerabilities.


## [6.1.0]

### Added

* Added ability to specify dataset under which metrics timeseries are created

## [6.0.2]

### Fixed

* Improved the state store retry behavior to handle connection errors

## [6.0.1]

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion cognite/extractorutils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@
Cognite extractor utils is a Python package that simplifies the development of new extractors.
"""

__version__ = "6.1.0"
__version__ = "6.1.0
from .base import Extractor
10 changes: 4 additions & 6 deletions cognite/extractorutils/statestore.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,8 @@
from types import TracebackType
from typing import Any, Callable, Dict, Iterator, List, Optional, Tuple, Type, Union

from requests.exceptions import ConnectionError

from cognite.client import CogniteClient
from cognite.client.exceptions import CogniteAPIError
from cognite.client.exceptions import CogniteAPIError, CogniteException
from cognite.extractorutils.uploader import DataPointList

from ._inner_util import _DecimalDecoder, _DecimalEncoder, _resolve_log_level
Expand Down Expand Up @@ -348,7 +346,7 @@ def __init__(
self._ensure_table()

@retry(
exceptions=(CogniteAPIError, ConnectionError),
exceptions=(CogniteException,),
tries=RETRIES,
delay=RETRY_DELAY,
max_delay=RETRY_MAX_DELAY,
Expand All @@ -370,7 +368,7 @@ def initialize(self, force: bool = False) -> None:
self._initialize_implementation(force)

@retry(
exceptions=(CogniteAPIError, ConnectionError),
exceptions=(CogniteException,),
tries=RETRIES,
delay=RETRY_DELAY,
max_delay=RETRY_MAX_DELAY,
Expand Down Expand Up @@ -404,7 +402,7 @@ def synchronize(self) -> None:
self._synchronize_implementation()

@retry(
exceptions=(CogniteAPIError, ConnectionError),
exceptions=(CogniteException,),
tries=RETRIES,
delay=RETRY_DELAY,
max_delay=RETRY_MAX_DELAY,
Expand Down

0 comments on commit 96a3ceb

Please sign in to comment.