omnata-plugin-runtime 0.10.31__tar.gz → 0.10.32__tar.gz
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.
- {omnata_plugin_runtime-0.10.31 → omnata_plugin_runtime-0.10.32}/PKG-INFO +1 -1
- {omnata_plugin_runtime-0.10.31 → omnata_plugin_runtime-0.10.32}/pyproject.toml +1 -1
- {omnata_plugin_runtime-0.10.31 → omnata_plugin_runtime-0.10.32}/src/omnata_plugin_runtime/api.py +4 -4
- {omnata_plugin_runtime-0.10.31 → omnata_plugin_runtime-0.10.32}/src/omnata_plugin_runtime/omnata_plugin.py +14 -2
- {omnata_plugin_runtime-0.10.31 → omnata_plugin_runtime-0.10.32}/src/omnata_plugin_runtime/plugin_entrypoints.py +6 -2
- {omnata_plugin_runtime-0.10.31 → omnata_plugin_runtime-0.10.32}/LICENSE +0 -0
- {omnata_plugin_runtime-0.10.31 → omnata_plugin_runtime-0.10.32}/README.md +0 -0
- {omnata_plugin_runtime-0.10.31 → omnata_plugin_runtime-0.10.32}/src/omnata_plugin_runtime/__init__.py +0 -0
- {omnata_plugin_runtime-0.10.31 → omnata_plugin_runtime-0.10.32}/src/omnata_plugin_runtime/configuration.py +0 -0
- {omnata_plugin_runtime-0.10.31 → omnata_plugin_runtime-0.10.32}/src/omnata_plugin_runtime/forms.py +0 -0
- {omnata_plugin_runtime-0.10.31 → omnata_plugin_runtime-0.10.32}/src/omnata_plugin_runtime/json_schema.py +0 -0
- {omnata_plugin_runtime-0.10.31 → omnata_plugin_runtime-0.10.32}/src/omnata_plugin_runtime/logging.py +0 -0
- {omnata_plugin_runtime-0.10.31 → omnata_plugin_runtime-0.10.32}/src/omnata_plugin_runtime/rate_limiting.py +0 -0
{omnata_plugin_runtime-0.10.31 → omnata_plugin_runtime-0.10.32}/src/omnata_plugin_runtime/api.py
RENAMED
@@ -108,9 +108,9 @@ class OutboundSyncRequestPayload(BaseModel):
|
|
108
108
|
Encapsulates the payload that is sent to the plugin when it is invoked to perform an outbound sync.
|
109
109
|
"""
|
110
110
|
|
111
|
-
sync_id: int
|
111
|
+
sync_id: int
|
112
112
|
sync_branch_name: str = 'main'
|
113
|
-
sync_branch_id: Optional[int]
|
113
|
+
sync_branch_id: Optional[int]
|
114
114
|
connection_id: int # only used by log handler
|
115
115
|
run_id: int # used by log handler and for reporting back run status updates
|
116
116
|
source_app_name: str # the name of the app which is invoking this plugin
|
@@ -139,8 +139,8 @@ class InboundSyncRequestPayload(BaseModel):
|
|
139
139
|
Encapsulates the payload that is sent to the plugin when it is invoked to perform an inbound sync.
|
140
140
|
"""
|
141
141
|
|
142
|
-
sync_id: int
|
143
|
-
sync_branch_name: str = 'main'
|
142
|
+
sync_id: int
|
143
|
+
sync_branch_name: str = 'main'
|
144
144
|
sync_branch_id: Optional[int] = None # only used by log handler
|
145
145
|
connection_id: int # only used by log handler
|
146
146
|
run_id: int # used by log handler and for reporting back run status updates
|
@@ -289,6 +289,8 @@ class SyncRequest(ABC):
|
|
289
289
|
run_deadline: datetime.datetime,
|
290
290
|
development_mode: bool = False,
|
291
291
|
test_replay_mode: bool = False,
|
292
|
+
sync_id: Optional[int] = None,
|
293
|
+
branch_name: Optional[str] = None
|
292
294
|
):
|
293
295
|
"""
|
294
296
|
Constructs a SyncRequest.
|
@@ -314,6 +316,8 @@ class SyncRequest(ABC):
|
|
314
316
|
self.plugin_instance._sync_request = self
|
315
317
|
self._session: Session = session
|
316
318
|
self._run_id = run_id
|
319
|
+
self._sync_id = sync_id
|
320
|
+
self._branch_name = branch_name
|
317
321
|
self.api_limits = api_limits
|
318
322
|
self.rate_limit_state_all = rate_limit_state_all
|
319
323
|
self.rate_limit_state_this_sync_and_branch = rate_limit_state_this_sync_and_branch
|
@@ -692,6 +696,8 @@ class OutboundSyncRequest(SyncRequest):
|
|
692
696
|
run_deadline: datetime.datetime,
|
693
697
|
development_mode: bool = False,
|
694
698
|
test_replay_mode: bool = False,
|
699
|
+
sync_id: Optional[int] = None,
|
700
|
+
branch_name: Optional[str] = None
|
695
701
|
):
|
696
702
|
"""
|
697
703
|
Constructs an OutboundSyncRequest.
|
@@ -717,7 +723,9 @@ class OutboundSyncRequest(SyncRequest):
|
|
717
723
|
rate_limit_state_this_sync_and_branch=rate_limit_state_this_sync_and_branch,
|
718
724
|
run_deadline=run_deadline,
|
719
725
|
development_mode=development_mode,
|
720
|
-
test_replay_mode=test_replay_mode
|
726
|
+
test_replay_mode=test_replay_mode,
|
727
|
+
sync_id=sync_id,
|
728
|
+
branch_name=branch_name
|
721
729
|
)
|
722
730
|
self._full_records_table_name = (
|
723
731
|
f"{source_app_name}.{records_schema_name}.{records_table_name}"
|
@@ -1018,6 +1026,8 @@ class InboundSyncRequest(SyncRequest):
|
|
1018
1026
|
omnata_log_handler:OmnataPluginLogHandler,
|
1019
1027
|
development_mode: bool = False,
|
1020
1028
|
test_replay_mode: bool = False,
|
1029
|
+
sync_id: Optional[int] = None,
|
1030
|
+
branch_name: Optional[str] = None
|
1021
1031
|
):
|
1022
1032
|
"""
|
1023
1033
|
Constructs a record apply request.
|
@@ -1071,7 +1081,9 @@ class InboundSyncRequest(SyncRequest):
|
|
1071
1081
|
rate_limit_state_this_sync_and_branch=rate_limit_state_this_sync_and_branch,
|
1072
1082
|
run_deadline=run_deadline,
|
1073
1083
|
development_mode=development_mode,
|
1074
|
-
test_replay_mode=test_replay_mode
|
1084
|
+
test_replay_mode=test_replay_mode,
|
1085
|
+
sync_id=sync_id,
|
1086
|
+
branch_name=branch_name
|
1075
1087
|
)
|
1076
1088
|
# named by convention, see SyncRunProcessor.enqueue
|
1077
1089
|
self._criteria_deletes_table_name = (
|
@@ -184,7 +184,9 @@ class PluginEntrypoint:
|
|
184
184
|
rate_limit_state_this_sync_and_branch=rate_limit_state_this_branch,
|
185
185
|
run_deadline=datetime.datetime.now(datetime.timezone.utc) + datetime.timedelta(minutes=request.time_limit_mins),
|
186
186
|
# for now, use the development mode flag to disable background workers
|
187
|
-
development_mode=self._plugin_instance.disable_background_workers
|
187
|
+
development_mode=self._plugin_instance.disable_background_workers,
|
188
|
+
sync_id=request.sync_id,
|
189
|
+
sync_branch_name=request.sync_branch_name
|
188
190
|
)
|
189
191
|
try:
|
190
192
|
self._plugin_instance._configuration_parameters = parameters
|
@@ -240,7 +242,9 @@ class PluginEntrypoint:
|
|
240
242
|
# for now, use the development mode flag to disable background workers
|
241
243
|
development_mode=self._plugin_instance.disable_background_workers,
|
242
244
|
streams=list(request.streams_configuration.included_streams.values()),
|
243
|
-
omnata_log_handler=omnata_log_handler
|
245
|
+
omnata_log_handler=omnata_log_handler,
|
246
|
+
sync_id=request.sync_id,
|
247
|
+
sync_branch_name=request.sync_branch_name
|
244
248
|
)
|
245
249
|
try:
|
246
250
|
self._plugin_instance._configuration_parameters = parameters
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{omnata_plugin_runtime-0.10.31 → omnata_plugin_runtime-0.10.32}/src/omnata_plugin_runtime/forms.py
RENAMED
File without changes
|
File without changes
|
{omnata_plugin_runtime-0.10.31 → omnata_plugin_runtime-0.10.32}/src/omnata_plugin_runtime/logging.py
RENAMED
File without changes
|
File without changes
|