Skip to content

Commit

Permalink
Add the schedule for h.tasks.annotations.fill_pk_and_user_id
Browse files Browse the repository at this point in the history
Start running it every hour between 8 and 1O UTC with a batch of 1000.

We can modify accordingly later after seeing real performance numbers in
production.
  • Loading branch information
marcospri committed Sep 8, 2023
1 parent 651e000 commit 4e92c98
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions h_periodic/h_beat.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
from os import environ

from celery import Celery
from celery.schedules import crontab

from h_periodic._util import asbool

Expand Down Expand Up @@ -51,6 +52,12 @@
"schedule": timedelta(minutes=1),
"kwargs": {"limit": 400},
},
"fill-annotations-pk": {
"options": {"expires": 30},
"task": "h.tasks.annotations.fill_pk_and_user_id",
"schedule": crontab(hour="*,9-14", minute=50),
"kwargs": {"batch_size": 1000},
},
"report-sync-annotations-queue-length": {
"options": {"expires": 30},
"task": "h.tasks.indexer.report_job_queue_metrics",
Expand Down

0 comments on commit 4e92c98

Please sign in to comment.