sentry-arroyo 2.35.0__py3-none-any.whl → 2.37.0__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.
- arroyo/processing/strategies/run_task_with_multiprocessing.py +10 -0
- {sentry_arroyo-2.35.0.dist-info → sentry_arroyo-2.37.0.dist-info}/METADATA +1 -1
- {sentry_arroyo-2.35.0.dist-info → sentry_arroyo-2.37.0.dist-info}/RECORD +6 -6
- {sentry_arroyo-2.35.0.dist-info → sentry_arroyo-2.37.0.dist-info}/WHEEL +0 -0
- {sentry_arroyo-2.35.0.dist-info → sentry_arroyo-2.37.0.dist-info}/licenses/LICENSE +0 -0
- {sentry_arroyo-2.35.0.dist-info → sentry_arroyo-2.37.0.dist-info}/top_level.txt +0 -0
|
@@ -42,6 +42,7 @@ DEFAULT_OUTPUT_BLOCK_SIZE = 16 * 1024 * 1024
|
|
|
42
42
|
|
|
43
43
|
LOG_THRESHOLD_TIME = 20 # In seconds
|
|
44
44
|
FAIL_THRESHOLD_TIME = 180 # In seconds
|
|
45
|
+
BATCH_PROCESS_LOG_TIME = 5 # In seconds
|
|
45
46
|
|
|
46
47
|
|
|
47
48
|
class ChildProcessTerminated(RuntimeError):
|
|
@@ -233,6 +234,7 @@ def parallel_run_task_worker_apply(
|
|
|
233
234
|
output_block: SharedMemory,
|
|
234
235
|
start_index: int = 0,
|
|
235
236
|
) -> ParallelRunTaskResult[TResult]:
|
|
237
|
+
last_logged_time = time.time()
|
|
236
238
|
valid_messages_transformed: MessageBatch[
|
|
237
239
|
Union[InvalidMessage, Message[Union[FilteredPayload, TResult]]]
|
|
238
240
|
] = MessageBatch(
|
|
@@ -242,6 +244,14 @@ def parallel_run_task_worker_apply(
|
|
|
242
244
|
|
|
243
245
|
next_index_to_process = start_index
|
|
244
246
|
while next_index_to_process < len(input_batch):
|
|
247
|
+
if last_logged_time + BATCH_PROCESS_LOG_TIME < time.time():
|
|
248
|
+
logger.info(
|
|
249
|
+
"Batch process is taking longer than %d seconds. index: %d",
|
|
250
|
+
BATCH_PROCESS_LOG_TIME,
|
|
251
|
+
next_index_to_process,
|
|
252
|
+
)
|
|
253
|
+
last_logged_time = time.time()
|
|
254
|
+
|
|
245
255
|
message = input_batch[next_index_to_process]
|
|
246
256
|
|
|
247
257
|
# Theory: Doing this check in the subprocess is cheaper because we
|
|
@@ -30,7 +30,7 @@ arroyo/processing/strategies/produce.py,sha256=w4GI7KC-CGn2bLG_qPcuKJo0EbZ4PF2TJ
|
|
|
30
30
|
arroyo/processing/strategies/reduce.py,sha256=xv9bYisgHHyS8fVD1PdGi4TJsaK-4RAhMEDh4WHhYfI,3933
|
|
31
31
|
arroyo/processing/strategies/run_task.py,sha256=MGe2UcIWN7FkPc9plKzRVUNbZ7Sk0jWjw1z2vVOFI_I,2160
|
|
32
32
|
arroyo/processing/strategies/run_task_in_threads.py,sha256=f1sb2AG-BLz11X78jfhtERIkdFogrV8vtdT3pyJdkx0,6144
|
|
33
|
-
arroyo/processing/strategies/run_task_with_multiprocessing.py,sha256=
|
|
33
|
+
arroyo/processing/strategies/run_task_with_multiprocessing.py,sha256=UpBpYRthCl93_Z-KeEycTbdIXUAor2-R7C_2hqBJmCg,37655
|
|
34
34
|
arroyo/processing/strategies/unfold.py,sha256=bi47pwmKGT0Irsx0HdB7Bhc5hb-yYqLF_xcv3g1ewTk,4231
|
|
35
35
|
arroyo/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
36
36
|
arroyo/utils/clock.py,sha256=r2EMO4nL5qIb1xnAd1sTAk2yK1UltyUi04lk5BqWKIc,944
|
|
@@ -46,7 +46,7 @@ examples/transform_and_produce/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5
|
|
|
46
46
|
examples/transform_and_produce/batched.py,sha256=st2R6qTneAtV0JFbKP30Ti3sJDYj8Jkbmta9JckKdZU,2636
|
|
47
47
|
examples/transform_and_produce/script.py,sha256=8kSMIjQNqGYEVyE0PvrfJh-a_UYCrJSstTp_De7kyyg,2306
|
|
48
48
|
examples/transform_and_produce/simple.py,sha256=H7xqxItjl4tx34wVW5dy6mB9G39QucAtxkJSBzVmjgA,1637
|
|
49
|
-
sentry_arroyo-2.
|
|
49
|
+
sentry_arroyo-2.37.0.dist-info/licenses/LICENSE,sha256=0Ng3MFdEcnz0sVD1XvGBBzbavvNp_7OAM5yVObB46jU,10829
|
|
50
50
|
tests/backends/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
51
51
|
tests/backends/mixins.py,sha256=sfNyE0VTeiD3GHOnBYl-9urvPuURI2G1BWke0cz7Dvc,20445
|
|
52
52
|
tests/backends/test_commit.py,sha256=iTHfK1qsBxim0XwxgMvNNSMqDUMEHoYkYBDcgxGBFbs,831
|
|
@@ -75,7 +75,7 @@ tests/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
|
75
75
|
tests/utils/test_concurrent.py,sha256=Gwdzym2UZ1HO3rhOSGmzxImWcLFygY8P7MXHT3Q0xTE,455
|
|
76
76
|
tests/utils/test_metrics.py,sha256=bI0EtGgPokMQyEqX58i0-8zvLfxRP2nWaWr2wLMaJ_o,917
|
|
77
77
|
tests/utils/test_retries.py,sha256=AxJLkXWeL9AjHv_p1n0pe8CXXJp24ZQIuYBHfNcmiz4,3075
|
|
78
|
-
sentry_arroyo-2.
|
|
79
|
-
sentry_arroyo-2.
|
|
80
|
-
sentry_arroyo-2.
|
|
81
|
-
sentry_arroyo-2.
|
|
78
|
+
sentry_arroyo-2.37.0.dist-info/METADATA,sha256=7hyEdSMQ4c_QOMh5SIfrUoyXPgBNXwlpBUp2Yz-J8go,2208
|
|
79
|
+
sentry_arroyo-2.37.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
80
|
+
sentry_arroyo-2.37.0.dist-info/top_level.txt,sha256=DVdMZKysL_iIxm5aY0sYgZtP5ZXMg9YBaBmGQHVmDXA,22
|
|
81
|
+
sentry_arroyo-2.37.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|