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

Update the date window for the slim task #390

Merged
merged 1 commit into from
Nov 27, 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
4 changes: 2 additions & 2 deletions h_periodic/h_beat.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
print("h_beat disabled by DISABLE_H_BEAT environment variable")
sys.exit()

SLIM_TASK_SINCE = "2018-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.

We don't order the candidate annotations (because it's expensive) so these are not guaranteed to be processed in order although they have been until now.

The oldest non-migrated annotations is from April:

select annotation.created from annotation 
left outer join annotation_slim on annotation_slim.pubid = annotation.id
where pubid is null
order by annotation.created asc
limit 1

SLIM_TASK_UNTIL = "2019-12-31"
SLIM_TASK_SINCE = "2018-04-01"
SLIM_TASK_UNTIL = "2020-03-30"
Copy link
Member Author

Choose a reason for hiding this comment

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

Add a bit of 2020 to have enough annos to process the next few days.


celery = Celery("h")
celery.conf.update(
Expand Down