Skip to content

Commit

Permalink
REF: Rename function
Browse files Browse the repository at this point in the history
  • Loading branch information
cortadocodes committed Feb 5, 2025
1 parent 9eca502 commit a4e7e0e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions octue/cloud/pub_sub/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ def answer(self, question, heartbeat_interval=120, timeout=30):

heartbeater = RepeatingTimer(
interval=heartbeat_interval,
function=self._send_heartbeat_and_check_runtime,
function=self._send_heartbeat,
kwargs=routing_metadata,
)

Expand Down Expand Up @@ -669,7 +669,7 @@ def _send_delivery_acknowledgment(

logger.info("%r acknowledged receipt of question %r.", self, question_uuid)

def _send_heartbeat_and_check_runtime(
def _send_heartbeat(
self,
question_uuid,
parent_question_uuid,
Expand All @@ -688,7 +688,6 @@ def _send_heartbeat_and_check_runtime(
:param str originator: the SRUID of the service revision that triggered all ancestor questions of this question
:param int retry_count: the retry count of the question (this is zero if it's the first attempt at the question)
:param int|float start_time: the `time.perf_counter` time that the analysis was started [s]
:param int|float runtime_timeout_warning_time: the amount of time after which to warn that the runtime timeout is approaching [s]
:param float timeout: time in seconds after which to give up sending
:return None:
"""
Expand Down

0 comments on commit a4e7e0e

Please sign in to comment.