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

Include the since/until parameters for H slim task #386

Merged
merged 1 commit into from
Nov 17, 2023
Merged

Conversation

marcospri
Copy link
Member

The dates here take into account the progress made so far and move the window forward a few months to see the impact on performance.

In theory a very big window will degrade performance significantly as it will need to visit more annotations.

The dates here take into account the progress made so far and move the
window forward a few months to see the impact on performance.

In theory a very big window will degrade performance significantly as it
will need to visit more annotations.
@@ -55,14 +58,22 @@
"fill-annotation-slim-first-batch": {
"options": {"expires": 30},
"task": "h.tasks.annotations.fill_annotation_slim",
"schedule": crontab(hour="7", minute="*/3"),
"kwargs": {"batch_size": 250},
"schedule": crontab(hour="7", minute="*/2"),
Copy link
Member Author

Choose a reason for hiding this comment

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

Change this from 3 -> 2 to be inline with the one below.

@@ -17,6 +17,9 @@
print("h_beat disabled by DISABLE_H_BEAT environment variable")
sys.exit()

SLIM_TASK_SINCE = "2016-01-01"
Copy link
Member Author

Choose a reason for hiding this comment

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

Having these here will make it easier to make follow up PRs.

"kwargs": {
"batch_size": 250,
"since": SLIM_TASK_SINCE,
"until": SLIM_TASK_UNTIL,
Copy link
Member Author

Choose a reason for hiding this comment

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

@@ -17,6 +17,9 @@
print("h_beat disabled by DISABLE_H_BEAT environment variable")
sys.exit()

SLIM_TASK_SINCE = "2016-01-01"
Copy link
Member Author

Choose a reason for hiding this comment

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

Progress so far

@@ -17,6 +17,9 @@
print("h_beat disabled by DISABLE_H_BEAT environment variable")
sys.exit()

SLIM_TASK_SINCE = "2016-01-01"
SLIM_TASK_UNTIL = "2018-03-31"
Copy link
Member Author

Choose a reason for hiding this comment

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

Include a few more months worth of annotations in the window over the default value.

@marcospri marcospri requested a review from acelaya November 16, 2023 14:01
@marcospri marcospri merged commit 3be1a0b into main Nov 17, 2023
8 checks passed
@marcospri marcospri deleted the fill-task-dates branch November 17, 2023 08:48
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