Skip to content

Commit

Permalink
Merge pull request #34996 from dimagi/nh/drop_get_payload
Browse files Browse the repository at this point in the history
Drop `get_payload()`
  • Loading branch information
kaapstorm authored Aug 19, 2024
2 parents 205ba91 + c7b35cd commit a4d3b41
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions corehq/motech/repeaters/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@
"""
import inspect
import json
import traceback
import uuid
from collections import defaultdict
from contextlib import nullcontext
Expand Down Expand Up @@ -1275,22 +1274,6 @@ def _get_retry_interval(last_checked, now):
return interval


def get_payload(repeater: Repeater, repeat_record: RepeatRecord) -> str:
try:
return repeater.get_payload(repeat_record)
except Exception as err:
log_repeater_error_in_datadog(
repeater.domain,
status_code=None,
repeater_type=repeater.__class__.__name__
)
repeat_record.add_payload_exception_attempt(
message=str(err),
tb_str=traceback.format_exc()
)
raise


def has_failed(record):
return record.state in (State.Fail, State.Cancelled)

Expand Down

0 comments on commit a4d3b41

Please sign in to comment.