Skip to content

Commit a2e4b5b

Browse files
ref(crons): Rename parallel field -> batched_parallel (#85261)
1 parent 53d37f0 commit a2e4b5b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/sentry/monitors/consumers/monitor_consumer.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1057,7 +1057,7 @@ def process_single(message: Message[KafkaPayload | FilteredPayload]) -> None:
10571057
class StoreMonitorCheckInStrategyFactory(ProcessingStrategyFactory[KafkaPayload]):
10581058
parallel_executor: ThreadPoolExecutor | None = None
10591059

1060-
parallel = False
1060+
batched_parallel = False
10611061
"""
10621062
Does the consumer process unrelated check-ins in parallel?
10631063
"""
@@ -1080,7 +1080,7 @@ def __init__(
10801080
max_workers: int | None = None,
10811081
) -> None:
10821082
if mode == "batched-parallel":
1083-
self.parallel = True
1083+
self.batched_parallel = True
10841084
self.parallel_executor = ThreadPoolExecutor(max_workers=max_workers)
10851085

10861086
if max_batch_size is not None:
@@ -1115,7 +1115,7 @@ def create_with_partitions(
11151115
commit: Commit,
11161116
partitions: Mapping[Partition, int],
11171117
) -> ProcessingStrategy[KafkaPayload]:
1118-
if self.parallel:
1118+
if self.batched_parallel:
11191119
return self.create_parallel_worker(commit)
11201120
else:
11211121
return self.create_synchronous_worker(commit)

0 commit comments

Comments
 (0)