Browse Source

Fix log messages in the action heartbeats mechanism

Change-Id: Ic1293db03d020f321d4e009ab7906da7622c5daf
changes/36/695636/1
Renat Akhmerov 2 weeks ago
parent
commit
7b58b9c267
2 changed files with 4 additions and 4 deletions
  1. +3
    -3
      mistral/services/action_heartbeat_checker.py
  2. +1
    -1
      mistral/services/action_heartbeat_sender.py

+ 3
- 3
mistral/services/action_heartbeat_checker.py View File

@@ -88,7 +88,7 @@ def _loop():
handle_expired_actions()
except Exception:
LOG.exception(
'Action execution checker iteration failed'
'Action heartbeat checker iteration failed'
' due to an unexpected exception.'
)

@@ -109,14 +109,14 @@ def start():
enabled = interval and max_missed

if not enabled:
LOG.info("Action heartbeat reporting is disabled.")
LOG.info("Action heartbeats are disabled.")

return

wait_time = interval * max_missed

LOG.debug(
"First run of action execution checker, wait before "
"First run of action heartbeat checker, wait before "
"checking to make sure executors have time to send "
"heartbeats. ({} seconds)".format(wait_time)
)

+ 1
- 1
mistral/services/action_heartbeat_sender.py View File

@@ -50,7 +50,7 @@ def remove_action(action_ex_id):


def send_action_heartbeats():
LOG.debug('Running heartbeat reporter...')
LOG.debug('Running heartbeat sender...')

global _running_actions


Loading…
Cancel
Save