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

Alert if something goes wrong with the Internet Archive task count #3413

Merged

Conversation

rebeccacremona
Copy link
Contributor

ENG-417

Something got scrambled, back in July, with Perma's internal record of how many Internet Archive tasks we currently have in flight: we think things got out-of-whack during a phased reboot of the workers.

Our records ended up in a state where, we thought we had more tasks in flight than is permitted, and so, we refrained from making any more uploads since.

We don't think this will happen again, because of a change in strategy: we will now go into maintenance mode before making changes like this.

But, this PR adds another level of safety: if we get into the same situation again, the upload task will now log to the error log.

@rebeccacremona rebeccacremona requested a review from a team as a code owner October 25, 2023 19:35
@rebeccacremona rebeccacremona requested review from bensteinberg and removed request for a team October 25, 2023 19:35
@codecov
Copy link

codecov bot commented Oct 25, 2023

Codecov Report

Attention: 3 lines in your changes are missing coverage. Please review.

Comparison is base (79ad0dd) 68.65% compared to head (fd29e45) 68.62%.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #3413      +/-   ##
===========================================
- Coverage    68.65%   68.62%   -0.03%     
===========================================
  Files           53       53              
  Lines         7233     7236       +3     
===========================================
  Hits          4966     4966              
- Misses        2267     2270       +3     
Files Coverage Δ
perma_web/perma/celery_tasks.py 47.71% <0.00%> (-0.11%) ⬇️

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@rebeccacremona rebeccacremona merged commit c4527d4 into harvard-lil:develop Oct 25, 2023
2 checks passed
@rebeccacremona rebeccacremona deleted the ia-upload-task-count-tweak branch October 30, 2023 18:41
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