Skip to content

Commit

Permalink
wip-reporter-followup
Browse files Browse the repository at this point in the history
  • Loading branch information
aaxelb committed Oct 16, 2024
1 parent cdaa0d3 commit 488013b
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions osf/metrics/reports.py
Original file line number Diff line number Diff line change
Expand Up @@ -326,14 +326,3 @@ def for_last_month(cls, item_osfid: str) -> PublicItemUsageReport | None:
)
_response = _search.execute()
return _response[0] if _response else None


@receiver(metrics_post_save, sender=PublicItemUsageReport)
def update_supplementary_metadata(sender, instance, **kwargs):
if website_settings.SHARE_ENABLED:
from api.share.utils import task__update_share
task__update_share.apply_async(
args=(instance.item_osfid,),
kwargs={'is_supplementary': True, 'is_backfill': True},
countdown=30, # delay 30 seconds; plenty of time for index refresh
)

0 comments on commit 488013b

Please sign in to comment.