Skip to content

Commit

Permalink
Merge pull request #4518 from wxtim/actually_load_contact_info_before…
Browse files Browse the repository at this point in the history
…_sending_a_task_message

actually load contact info before sending a task message.
  • Loading branch information
oliver-sanders committed Nov 24, 2021
2 parents 5ef4419 + 95f183f commit 7c27b0e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/cylc/network/httpclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,7 @@ def put_messages(self, payload):
event_time (str): Event time as string.
messages (list): List in the form [[severity, message], ...].
"""
func_name = self._compat('put_messages')
retry_intvl = float(self.comms1.get(
self.srv_files_mgr.KEY_TASK_MSG_RETRY_INTVL,
self.MSG_RETRY_INTVL))
Expand All @@ -270,7 +271,8 @@ def put_messages(self, payload):
if self.timeout is None:
self.timeout = self.MSG_TIMEOUT
try:
func_name = self._compat('put_messages')
if not func_name:
func_name = self._compat('put_messages')
if func_name == 'put_messages':
results = self._call_server(func_name, payload=payload)
elif func_name == 'put_message': # API 1, 7.5.0 compat
Expand Down Expand Up @@ -314,6 +316,8 @@ def put_messages(self, payload):
return results
finally:
self.timeout = orig_timeout
self.comms1 = {}
func_name = None

def reset(self):
"""Compat method, does nothing."""
Expand Down

0 comments on commit 7c27b0e

Please sign in to comment.