Skip to content

Commit a7b3cb7

Browse files
author
extreme4all
committed
fix: update max interval and log level in worker settings
1 parent c7c264b commit a7b3cb7

File tree

1 file changed

+3
-3
lines changed
  • bases/bot_detector/worker_hiscore

1 file changed

+3
-3
lines changed

bases/bot_detector/worker_hiscore/core.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020

2121
class Settings(BaseSettings):
2222
N_WORKERS: int = 1
23-
MAX_BATCH_SIZE: int = 10_000 # TODO: env variable?
24-
MAX_INTERVAL_MS: int = 1_000 # TODO: env variable?
23+
MAX_BATCH_SIZE: int = 10_000
24+
MAX_INTERVAL_MS: int = 5_000
2525

2626

2727
async def insert_batch(
@@ -70,7 +70,7 @@ async def consume_many_task(
7070
max_messages=max_messages,
7171
timeout_ms=max_interval_ms,
7272
)
73-
logger.debug(f"[{worker_id}] consumed {len(batch)} scrapes")
73+
logger.info(f"[{worker_id}] consumed {len(batch)} scrapes")
7474

7575
if errors:
7676
logger.error(f"[{worker_id}] Errors during consumption: {errors}")

0 commit comments

Comments
 (0)