Skip to content

Commit 5f3fdc6

Browse files
author
Nithin Bodanapu
committed
Merge branch 'master' of https://github.com/cognitedata/python-extractor-utils into DOG-4924-investigate-security-implications-of-dotenv-usage-in-cognite-extractor-utils
2 parents 24ae7f9 + 050b6fe commit 5f3fdc6

File tree

4 files changed

+12
-4
lines changed

4 files changed

+12
-4
lines changed

CHANGELOG.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,18 @@ Changes are grouped as follows
1212
- `Fixed` for any bug fixes.
1313
- `Security` in case of vulnerabilities.
1414

15-
## 7.5.12
15+
## 7.5.13
1616

1717
### Security
1818

1919
* Disabled recursive search for .env file. The change will prevent loading environment variables hosted in directories other than the current working directory. Environment variable management is now more explicit to enhance security, and reduce potential misconfigurations.
2020

21+
## 7.5.12
22+
23+
## Added
24+
25+
- Allow users to override what message to send on shutdown
26+
2127
## 7.5.11
2228

2329
### Added

cognite/extractorutils/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
Cognite extractor utils is a Python package that simplifies the development of new extractors.
1717
"""
1818

19-
__version__ = "7.5.12"
19+
__version__ = "7.5.13"
2020
from .base import Extractor
2121

2222
__all__ = ["Extractor"]

cognite/extractorutils/base.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ def __init__(
9090
handle_interrupts: bool = True,
9191
reload_config_interval: int | None = 300,
9292
reload_config_action: ReloadConfigAction = ReloadConfigAction.DO_NOTHING,
93+
success_message: str = "Successful shutdown",
9394
):
9495
self.name = name
9596
self.description = description
@@ -104,6 +105,7 @@ def __init__(
104105
self.handle_interrupts = handle_interrupts
105106
self.reload_config_interval = reload_config_interval
106107
self.reload_config_action = reload_config_action
108+
self.success_message = success_message
107109

108110
self.started = False
109111
self.configured_logger = False
@@ -218,7 +220,7 @@ def _report_success(self) -> None:
218220
ExtractionPipelineRun(
219221
extpipe_external_id=self.extraction_pipeline.external_id,
220222
status="success",
221-
message="Successful shutdown",
223+
message=self.success_message,
222224
)
223225
)
224226

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "cognite-extractor-utils"
3-
version = "7.5.12"
3+
version = "7.5.13"
44
description = "Utilities for easier development of extractors for CDF"
55
authors = [
66
{name = "Mathias Lohne", email = "mathias.lohne@cognite.com"}

0 commit comments

Comments
 (0)