From 7fc57511bfdaf6e3e3ac21e7353016e7f1fef53d Mon Sep 17 00:00:00 2001 From: Marcos Prieto Date: Mon, 18 Sep 2023 14:47:49 +0200 Subject: [PATCH] Decrease batch size for the H.annotation pk fill up task We've been seeing a number of timeouts for this tasks. Reducing the number drastically to try to get the number of failed task sto 0. --- h_periodic/h_beat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/h_periodic/h_beat.py b/h_periodic/h_beat.py index c56161a..0a22ff8 100644 --- a/h_periodic/h_beat.py +++ b/h_periodic/h_beat.py @@ -56,7 +56,7 @@ "options": {"expires": 30}, "task": "h.tasks.annotations.fill_pk_and_user_id", "schedule": crontab(hour="4-12", minute="*/5"), - "kwargs": {"batch_size": 5000}, + "kwargs": {"batch_size": 1000}, }, "report-sync-annotations-queue-length": { "options": {"expires": 30},