Skip to content

Commit

Permalink
feat(recap): Adds the 'associate_related_instances' helper to the ACM…
Browse files Browse the repository at this point in the history
… docket processing method
  • Loading branch information
ERosendo committed Apr 23, 2024
1 parent 6bca3a4 commit 9a804a8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cl/recap/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -1169,7 +1169,8 @@ async def process_recap_acms_docket(pk):
d.pacer_case_id = pq.pacer_case_id

if pq.debug:
await mark_pq_successful(pq, d_id=d.pk)
await associate_related_instances(pq, d_id=d.pk)
await mark_pq_successful(pq)
return {"docket_pk": d.pk, "content_updated": False}

if og_info is not None:
Expand All @@ -1194,7 +1195,8 @@ async def process_recap_acms_docket(pk):
newly_enqueued = enqueue_docket_alert(d.pk)
if newly_enqueued:
await sync_to_async(send_alert_and_webhook.delay)(d.pk, start_time)
await mark_pq_successful(pq, d_id=d.pk)
await associate_related_instances(pq, d_id=d.pk)
await mark_pq_successful(pq)
return {
"docket_pk": d.pk,
"content_updated": bool(rds_created or content_updated),
Expand Down

0 comments on commit 9a804a8

Please sign in to comment.