sentry-arroyo 2.19.7__tar.gz → 2.19.8__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.
- {sentry_arroyo-2.19.7/sentry_arroyo.egg-info → sentry_arroyo-2.19.8}/PKG-INFO +1 -1
- {sentry_arroyo-2.19.7 → sentry_arroyo-2.19.8}/arroyo/processing/processor.py +21 -4
- {sentry_arroyo-2.19.7 → sentry_arroyo-2.19.8/sentry_arroyo.egg-info}/PKG-INFO +1 -1
- {sentry_arroyo-2.19.7 → sentry_arroyo-2.19.8}/setup.py +1 -1
- {sentry_arroyo-2.19.7 → sentry_arroyo-2.19.8}/LICENSE +0 -0
- {sentry_arroyo-2.19.7 → sentry_arroyo-2.19.8}/MANIFEST.in +0 -0
- {sentry_arroyo-2.19.7 → sentry_arroyo-2.19.8}/README.md +0 -0
- {sentry_arroyo-2.19.7 → sentry_arroyo-2.19.8}/arroyo/__init__.py +0 -0
- {sentry_arroyo-2.19.7 → sentry_arroyo-2.19.8}/arroyo/backends/__init__.py +0 -0
- {sentry_arroyo-2.19.7 → sentry_arroyo-2.19.8}/arroyo/backends/abstract.py +0 -0
- {sentry_arroyo-2.19.7 → sentry_arroyo-2.19.8}/arroyo/backends/kafka/__init__.py +0 -0
- {sentry_arroyo-2.19.7 → sentry_arroyo-2.19.8}/arroyo/backends/kafka/commit.py +0 -0
- {sentry_arroyo-2.19.7 → sentry_arroyo-2.19.8}/arroyo/backends/kafka/configuration.py +0 -0
- {sentry_arroyo-2.19.7 → sentry_arroyo-2.19.8}/arroyo/backends/kafka/consumer.py +0 -0
- {sentry_arroyo-2.19.7 → sentry_arroyo-2.19.8}/arroyo/backends/local/__init__.py +0 -0
- {sentry_arroyo-2.19.7 → sentry_arroyo-2.19.8}/arroyo/backends/local/backend.py +0 -0
- {sentry_arroyo-2.19.7 → sentry_arroyo-2.19.8}/arroyo/backends/local/storages/__init__.py +0 -0
- {sentry_arroyo-2.19.7 → sentry_arroyo-2.19.8}/arroyo/backends/local/storages/abstract.py +0 -0
- {sentry_arroyo-2.19.7 → sentry_arroyo-2.19.8}/arroyo/backends/local/storages/memory.py +0 -0
- {sentry_arroyo-2.19.7 → sentry_arroyo-2.19.8}/arroyo/commit.py +0 -0
- {sentry_arroyo-2.19.7 → sentry_arroyo-2.19.8}/arroyo/dlq.py +0 -0
- {sentry_arroyo-2.19.7 → sentry_arroyo-2.19.8}/arroyo/errors.py +0 -0
- {sentry_arroyo-2.19.7 → sentry_arroyo-2.19.8}/arroyo/processing/__init__.py +0 -0
- {sentry_arroyo-2.19.7 → sentry_arroyo-2.19.8}/arroyo/processing/strategies/__init__.py +0 -0
- {sentry_arroyo-2.19.7 → sentry_arroyo-2.19.8}/arroyo/processing/strategies/abstract.py +0 -0
- {sentry_arroyo-2.19.7 → sentry_arroyo-2.19.8}/arroyo/processing/strategies/batching.py +0 -0
- {sentry_arroyo-2.19.7 → sentry_arroyo-2.19.8}/arroyo/processing/strategies/buffer.py +0 -0
- {sentry_arroyo-2.19.7 → sentry_arroyo-2.19.8}/arroyo/processing/strategies/commit.py +0 -0
- {sentry_arroyo-2.19.7 → sentry_arroyo-2.19.8}/arroyo/processing/strategies/filter.py +0 -0
- {sentry_arroyo-2.19.7 → sentry_arroyo-2.19.8}/arroyo/processing/strategies/guard.py +0 -0
- {sentry_arroyo-2.19.7 → sentry_arroyo-2.19.8}/arroyo/processing/strategies/healthcheck.py +0 -0
- {sentry_arroyo-2.19.7 → sentry_arroyo-2.19.8}/arroyo/processing/strategies/noop.py +0 -0
- {sentry_arroyo-2.19.7 → sentry_arroyo-2.19.8}/arroyo/processing/strategies/produce.py +0 -0
- {sentry_arroyo-2.19.7 → sentry_arroyo-2.19.8}/arroyo/processing/strategies/reduce.py +0 -0
- {sentry_arroyo-2.19.7 → sentry_arroyo-2.19.8}/arroyo/processing/strategies/run_task.py +0 -0
- {sentry_arroyo-2.19.7 → sentry_arroyo-2.19.8}/arroyo/processing/strategies/run_task_in_threads.py +0 -0
- {sentry_arroyo-2.19.7 → sentry_arroyo-2.19.8}/arroyo/processing/strategies/run_task_with_multiprocessing.py +0 -0
- {sentry_arroyo-2.19.7 → sentry_arroyo-2.19.8}/arroyo/processing/strategies/unfold.py +0 -0
- {sentry_arroyo-2.19.7 → sentry_arroyo-2.19.8}/arroyo/py.typed +0 -0
- {sentry_arroyo-2.19.7 → sentry_arroyo-2.19.8}/arroyo/types.py +0 -0
- {sentry_arroyo-2.19.7 → sentry_arroyo-2.19.8}/arroyo/utils/__init__.py +0 -0
- {sentry_arroyo-2.19.7 → sentry_arroyo-2.19.8}/arroyo/utils/clock.py +0 -0
- {sentry_arroyo-2.19.7 → sentry_arroyo-2.19.8}/arroyo/utils/codecs.py +0 -0
- {sentry_arroyo-2.19.7 → sentry_arroyo-2.19.8}/arroyo/utils/concurrent.py +0 -0
- {sentry_arroyo-2.19.7 → sentry_arroyo-2.19.8}/arroyo/utils/logging.py +0 -0
- {sentry_arroyo-2.19.7 → sentry_arroyo-2.19.8}/arroyo/utils/metricDefs.json +0 -0
- {sentry_arroyo-2.19.7 → sentry_arroyo-2.19.8}/arroyo/utils/metric_defs.py +0 -0
- {sentry_arroyo-2.19.7 → sentry_arroyo-2.19.8}/arroyo/utils/metrics.py +0 -0
- {sentry_arroyo-2.19.7 → sentry_arroyo-2.19.8}/arroyo/utils/profiler.py +0 -0
- {sentry_arroyo-2.19.7 → sentry_arroyo-2.19.8}/arroyo/utils/retries.py +0 -0
- {sentry_arroyo-2.19.7 → sentry_arroyo-2.19.8}/examples/transform_and_produce/__init__.py +0 -0
- {sentry_arroyo-2.19.7 → sentry_arroyo-2.19.8}/examples/transform_and_produce/batched.py +0 -0
- {sentry_arroyo-2.19.7 → sentry_arroyo-2.19.8}/examples/transform_and_produce/script.py +0 -0
- {sentry_arroyo-2.19.7 → sentry_arroyo-2.19.8}/examples/transform_and_produce/simple.py +0 -0
- {sentry_arroyo-2.19.7 → sentry_arroyo-2.19.8}/requirements.txt +0 -0
- {sentry_arroyo-2.19.7 → sentry_arroyo-2.19.8}/sentry_arroyo.egg-info/SOURCES.txt +0 -0
- {sentry_arroyo-2.19.7 → sentry_arroyo-2.19.8}/sentry_arroyo.egg-info/dependency_links.txt +0 -0
- {sentry_arroyo-2.19.7 → sentry_arroyo-2.19.8}/sentry_arroyo.egg-info/not-zip-safe +0 -0
- {sentry_arroyo-2.19.7 → sentry_arroyo-2.19.8}/sentry_arroyo.egg-info/requires.txt +0 -0
- {sentry_arroyo-2.19.7 → sentry_arroyo-2.19.8}/sentry_arroyo.egg-info/top_level.txt +0 -0
- {sentry_arroyo-2.19.7 → sentry_arroyo-2.19.8}/setup.cfg +0 -0
- {sentry_arroyo-2.19.7 → sentry_arroyo-2.19.8}/tests/backends/__init__.py +0 -0
- {sentry_arroyo-2.19.7 → sentry_arroyo-2.19.8}/tests/backends/mixins.py +0 -0
- {sentry_arroyo-2.19.7 → sentry_arroyo-2.19.8}/tests/backends/test_commit.py +0 -0
- {sentry_arroyo-2.19.7 → sentry_arroyo-2.19.8}/tests/backends/test_kafka.py +0 -0
- {sentry_arroyo-2.19.7 → sentry_arroyo-2.19.8}/tests/backends/test_local.py +0 -0
- {sentry_arroyo-2.19.7 → sentry_arroyo-2.19.8}/tests/processing/__init__.py +0 -0
- {sentry_arroyo-2.19.7 → sentry_arroyo-2.19.8}/tests/processing/strategies/__init__.py +0 -0
- {sentry_arroyo-2.19.7 → sentry_arroyo-2.19.8}/tests/processing/strategies/test_all.py +0 -0
- {sentry_arroyo-2.19.7 → sentry_arroyo-2.19.8}/tests/processing/strategies/test_batching.py +0 -0
- {sentry_arroyo-2.19.7 → sentry_arroyo-2.19.8}/tests/processing/strategies/test_buffer.py +0 -0
- {sentry_arroyo-2.19.7 → sentry_arroyo-2.19.8}/tests/processing/strategies/test_commit.py +0 -0
- {sentry_arroyo-2.19.7 → sentry_arroyo-2.19.8}/tests/processing/strategies/test_filter.py +0 -0
- {sentry_arroyo-2.19.7 → sentry_arroyo-2.19.8}/tests/processing/strategies/test_guard.py +0 -0
- {sentry_arroyo-2.19.7 → sentry_arroyo-2.19.8}/tests/processing/strategies/test_noop.py +0 -0
- {sentry_arroyo-2.19.7 → sentry_arroyo-2.19.8}/tests/processing/strategies/test_produce.py +0 -0
- {sentry_arroyo-2.19.7 → sentry_arroyo-2.19.8}/tests/processing/strategies/test_reduce.py +0 -0
- {sentry_arroyo-2.19.7 → sentry_arroyo-2.19.8}/tests/processing/strategies/test_run_task.py +0 -0
- {sentry_arroyo-2.19.7 → sentry_arroyo-2.19.8}/tests/processing/strategies/test_run_task_in_threads.py +0 -0
- {sentry_arroyo-2.19.7 → sentry_arroyo-2.19.8}/tests/processing/strategies/test_run_task_with_multiprocessing.py +0 -0
- {sentry_arroyo-2.19.7 → sentry_arroyo-2.19.8}/tests/processing/strategies/test_unfold.py +0 -0
- {sentry_arroyo-2.19.7 → sentry_arroyo-2.19.8}/tests/processing/test_processor.py +0 -0
- {sentry_arroyo-2.19.7 → sentry_arroyo-2.19.8}/tests/test_commit.py +0 -0
- {sentry_arroyo-2.19.7 → sentry_arroyo-2.19.8}/tests/test_dlq.py +0 -0
- {sentry_arroyo-2.19.7 → sentry_arroyo-2.19.8}/tests/test_types.py +0 -0
- {sentry_arroyo-2.19.7 → sentry_arroyo-2.19.8}/tests/utils/__init__.py +0 -0
- {sentry_arroyo-2.19.7 → sentry_arroyo-2.19.8}/tests/utils/test_concurrent.py +0 -0
- {sentry_arroyo-2.19.7 → sentry_arroyo-2.19.8}/tests/utils/test_metrics.py +0 -0
- {sentry_arroyo-2.19.7 → sentry_arroyo-2.19.8}/tests/utils/test_retries.py +0 -0
|
@@ -446,10 +446,27 @@ class StreamProcessor(Generic[TStrategyPayload]):
|
|
|
446
446
|
self.__is_paused = True
|
|
447
447
|
|
|
448
448
|
elif self.__is_paused:
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
449
|
+
paused_partitions = set(self.__consumer.paused())
|
|
450
|
+
unpaused_partitions = (
|
|
451
|
+
set(self.__consumer.tell()) - paused_partitions
|
|
452
|
+
)
|
|
453
|
+
if unpaused_partitions:
|
|
454
|
+
logger.warning(
|
|
455
|
+
"Processor in paused state while consumer is partially unpaused: %s, paused: %s",
|
|
456
|
+
unpaused_partitions,
|
|
457
|
+
paused_partitions,
|
|
458
|
+
)
|
|
459
|
+
self.__is_paused = False
|
|
460
|
+
# unpause paused partitions... just in case a subset is paused
|
|
461
|
+
self.__metrics_buffer.incr_counter(
|
|
462
|
+
"arroyo.consumer.resume", 1
|
|
463
|
+
)
|
|
464
|
+
self.__consumer.resume([*paused_partitions])
|
|
465
|
+
else:
|
|
466
|
+
# A paused consumer should still poll periodically to avoid it's partitions
|
|
467
|
+
# getting revoked by the broker after reaching the max.poll.interval.ms
|
|
468
|
+
# Polling a paused consumer should never yield a message.
|
|
469
|
+
assert self.__consumer.poll(0.1) is None
|
|
453
470
|
else:
|
|
454
471
|
time.sleep(0.01)
|
|
455
472
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sentry_arroyo-2.19.7 → sentry_arroyo-2.19.8}/arroyo/processing/strategies/run_task_in_threads.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|