harvard-lil / perma

Indelible links
420 stars 71 forks source link

Further redefine "yesterday" #3318

Closed bensteinberg closed 1 year ago

bensteinberg commented 1 year ago

This morning, the IA item daily_perma_cc_2023-04-12 is marked complete, with a cached file count of 2,459, but there are still files to upload:

In [1]: from perma.models import Link

In [2]: date_string = "2023-04-12"

In [3]: to_upload = Link.objects.ia_upload_pending(date_string, 100)

In [4]: len(to_upload)
Out[4]: 23

I think giving the system an extra day to do the uploads should do the trick, but I imagine (days=2, hours=1) could also work. After this is deployed, I'll toggle the completed flag on this item.

codecov[bot] commented 1 year ago

Codecov Report

Merging #3318 (ade3a14) into develop (ab95450) will not change coverage. The diff coverage is 0.00%.

@@           Coverage Diff            @@
##           develop    #3318   +/-   ##
========================================
  Coverage    73.58%   73.58%           
========================================
  Files           55       55           
  Lines         6647     6647           
========================================
  Hits          4891     4891           
  Misses        1756     1756           
Impacted Files Coverage Δ
perma_web/perma/celery_tasks.py 53.20% <0.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.