port-ocean 0.24.0__py3-none-any.whl → 0.24.2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of port-ocean might be problematic. Click here for more details.
- port_ocean/clients/port/mixins/entities.py +1 -1
- port_ocean/config/settings.py +17 -2
- {port_ocean-0.24.0.dist-info → port_ocean-0.24.2.dist-info}/METADATA +1 -1
- {port_ocean-0.24.0.dist-info → port_ocean-0.24.2.dist-info}/RECORD +7 -7
- {port_ocean-0.24.0.dist-info → port_ocean-0.24.2.dist-info}/LICENSE.md +0 -0
- {port_ocean-0.24.0.dist-info → port_ocean-0.24.2.dist-info}/WHEEL +0 -0
- {port_ocean-0.24.0.dist-info → port_ocean-0.24.2.dist-info}/entry_points.txt +0 -0
|
@@ -353,7 +353,7 @@ class EntityClientMixin:
|
|
|
353
353
|
entities_results: list[tuple[bool, Entity]] = []
|
|
354
354
|
blueprint = entities[0].blueprint
|
|
355
355
|
|
|
356
|
-
if ocean.
|
|
356
|
+
if ocean.app.is_saas():
|
|
357
357
|
bulk_size = self.calculate_entities_batch_size(entities)
|
|
358
358
|
bulks = [
|
|
359
359
|
entities[i : i + bulk_size] for i in range(0, len(entities), bulk_size)
|
port_ocean/config/settings.py
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import platform
|
|
1
2
|
from typing import Any, Literal, Optional, Type, cast
|
|
2
3
|
|
|
3
4
|
from pydantic import AnyHttpUrl, Extra, parse_obj_as, parse_raw_as
|
|
@@ -98,13 +99,27 @@ class IntegrationConfiguration(BaseOceanSettings, extra=Extra.allow):
|
|
|
98
99
|
)
|
|
99
100
|
max_event_processing_seconds: float = 90.0
|
|
100
101
|
max_wait_seconds_before_shutdown: float = 5.0
|
|
101
|
-
caching_storage_mode: Optional[CachingStorageMode] = Field(
|
|
102
|
-
|
|
102
|
+
caching_storage_mode: Optional[CachingStorageMode] = Field(
|
|
103
|
+
default=CachingStorageMode.disk
|
|
104
|
+
)
|
|
105
|
+
process_execution_mode: Optional[ProcessExecutionMode] = Field(
|
|
106
|
+
default=ProcessExecutionMode.multi_process
|
|
107
|
+
)
|
|
103
108
|
|
|
104
109
|
upsert_entities_batch_max_length: int = 20
|
|
105
110
|
upsert_entities_batch_max_size_in_bytes: int = 1024 * 1024
|
|
106
111
|
bulk_upserts_enabled: bool = False
|
|
107
112
|
|
|
113
|
+
@validator("process_execution_mode")
|
|
114
|
+
def validate_process_execution_mode(
|
|
115
|
+
cls, process_execution_mode: ProcessExecutionMode
|
|
116
|
+
) -> ProcessExecutionMode:
|
|
117
|
+
# Check if the system is macos, if so, set the process execution mode to single process since multiprocessing behavior is different on macos and some asyncio error pop up
|
|
118
|
+
is_macos = platform.system() == "Darwin"
|
|
119
|
+
if is_macos:
|
|
120
|
+
return ProcessExecutionMode.single_process
|
|
121
|
+
return process_execution_mode
|
|
122
|
+
|
|
108
123
|
@validator("metrics", pre=True)
|
|
109
124
|
def validate_metrics(cls, v: Any) -> MetricsSettings | dict[str, Any] | None:
|
|
110
125
|
if v is None:
|
|
@@ -59,7 +59,7 @@ port_ocean/clients/port/authentication.py,sha256=r7r8Ag9WuwXy-CmgeOoj-PHbmJAQxhb
|
|
|
59
59
|
port_ocean/clients/port/client.py,sha256=dv0mxIOde6J-wFi1FXXZkoNPVHrZzY7RSMhNkDD9xgA,3566
|
|
60
60
|
port_ocean/clients/port/mixins/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
61
61
|
port_ocean/clients/port/mixins/blueprints.py,sha256=aMCG4zePsMSMjMLiGrU37h5z5_ElfMzTcTvqvOI5wXY,4683
|
|
62
|
-
port_ocean/clients/port/mixins/entities.py,sha256=
|
|
62
|
+
port_ocean/clients/port/mixins/entities.py,sha256=ZhHGasXLHGixDno2E9nMkjnE0XWlVTxlpR-0bntMX8Y,23303
|
|
63
63
|
port_ocean/clients/port/mixins/integrations.py,sha256=s6paomK9bYWW-Tu3y2OIaEGSxsXCHyhapVi4JIhhO64,11162
|
|
64
64
|
port_ocean/clients/port/mixins/migrations.py,sha256=vdL_A_NNUogvzujyaRLIoZEu5vmKDY2BxTjoGP94YzI,1467
|
|
65
65
|
port_ocean/clients/port/mixins/organization.py,sha256=A2cP5V49KnjoAXxjmnm_XGth4ftPSU0qURNfnyUyS_Y,1041
|
|
@@ -69,7 +69,7 @@ port_ocean/clients/port/utils.py,sha256=osFyAjw7Y5Qf2uVSqC7_RTCQfijiL1zS74JJM0go
|
|
|
69
69
|
port_ocean/config/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
70
70
|
port_ocean/config/base.py,sha256=x1gFbzujrxn7EJudRT81C6eN9WsYAb3vOHwcpcpX8Tc,6370
|
|
71
71
|
port_ocean/config/dynamic.py,sha256=T0AWE41tjp9fL1sgrTRwNAGlPw6xiakFp-KXWvHtu_4,2035
|
|
72
|
-
port_ocean/config/settings.py,sha256=
|
|
72
|
+
port_ocean/config/settings.py,sha256=QrxhVx1WV0GT3VUPIyRmbn5a_RJR-AWeVZWnBV63AAk,7195
|
|
73
73
|
port_ocean/consumers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
74
74
|
port_ocean/consumers/kafka_consumer.py,sha256=N8KocjBi9aR0BOPG8hgKovg-ns_ggpEjrSxqSqF_BSo,4710
|
|
75
75
|
port_ocean/context/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -200,8 +200,8 @@ port_ocean/utils/repeat.py,sha256=U2OeCkHPWXmRTVoPV-VcJRlQhcYqPWI5NfmPlb1JIbc,32
|
|
|
200
200
|
port_ocean/utils/signal.py,sha256=mMVq-1Ab5YpNiqN4PkiyTGlV_G0wkUDMMjTZp5z3pb0,1514
|
|
201
201
|
port_ocean/utils/time.py,sha256=pufAOH5ZQI7gXvOvJoQXZXZJV-Dqktoj9Qp9eiRwmJ4,1939
|
|
202
202
|
port_ocean/version.py,sha256=UsuJdvdQlazzKGD3Hd5-U7N69STh8Dq9ggJzQFnu9fU,177
|
|
203
|
-
port_ocean-0.24.
|
|
204
|
-
port_ocean-0.24.
|
|
205
|
-
port_ocean-0.24.
|
|
206
|
-
port_ocean-0.24.
|
|
207
|
-
port_ocean-0.24.
|
|
203
|
+
port_ocean-0.24.2.dist-info/LICENSE.md,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
|
|
204
|
+
port_ocean-0.24.2.dist-info/METADATA,sha256=VvYG5ek9ZHp-Wc9vnuu8pXVOaNC2CTZ3iWy_7-vhNLQ,6764
|
|
205
|
+
port_ocean-0.24.2.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
|
|
206
|
+
port_ocean-0.24.2.dist-info/entry_points.txt,sha256=F_DNUmGZU2Kme-8NsWM5LLE8piGMafYZygRYhOVtcjA,54
|
|
207
|
+
port_ocean-0.24.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|