Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Daily start of the fill annotation with a smaller batch size #382

Merged
merged 1 commit into from
Nov 6, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions h_periodic/h_beat.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,17 @@
"schedule": timedelta(minutes=1),
"kwargs": {"limit": 400},
},
"fill-annotation-slim-first-batch": {
"options": {"expires": 30},
"task": "h.tasks.annotations.fill_annotation_slim",
"schedule": crontab(hour="8", minute="*/3"),
"kwargs": {"batch_size": 500},
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've seen the first(s) few batches of the day take longer. After that it seems to stabilize.

Run the first batches with a smaller size.

},
"fill-annotation-slim": {
"options": {"expires": 30},
"task": "h.tasks.annotations.fill_annotation_slim",
"schedule": crontab(hour="9-13", minute="*/4"),
"kwargs": {"batch_size": 1000},
"schedule": crontab(hour="9-13", minute="*/3"),
"kwargs": {"batch_size": 1500},
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bigger batch size after that

},
"report-sync-annotations-queue-length": {
"options": {"expires": 30},
Expand Down