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

Conversation

marcospri
Copy link
Member

Start the day with a smaller batch size and switch to a bigger one after 1 hour.

Run the task every 3 minutes instead of 4.

"schedule": crontab(hour="9-13", minute="*/4"),
"kwargs": {"batch_size": 1000},
"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.

"options": {"expires": 30},
"task": "h.tasks.annotations.fill_annotation_slim",
"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

@marcospri marcospri requested a review from acelaya November 3, 2023 10:40
Start the day with a smaller batch size and switch to a bigger one after
1 hour.

Run the task every 3 minutes instead of 4.
@marcospri marcospri merged commit 1cdf12a into main Nov 6, 2023
8 checks passed
@marcospri marcospri deleted the more-frequent-3 branch November 6, 2023 08:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants