Fix a log in action heartbeat checker
When an action is timeouting, the LOG info was failing due to the fact that it was not able to transform actions_exs in str. Anyway, let's print only the id of each action in that situation. Also, print that in warning because it's not expected. Change-Id: Ia5f8b4ac886b0133468d1aa87f1a61c2807eac20 Signed-off-by: Arnaud M <arnaud.morin@gmail.com>
This commit is contained in:
@@ -55,12 +55,12 @@ def handle_expired_actions():
|
||||
LOG.debug("Found {} running and expired actions.", len(action_exs))
|
||||
|
||||
if action_exs:
|
||||
LOG.info(
|
||||
"Actions executions to transit to error, because "
|
||||
"heartbeat wasn't received: {}", action_exs
|
||||
)
|
||||
|
||||
for action_ex in action_exs:
|
||||
LOG.warning(
|
||||
"Action execution to transit to error, because "
|
||||
"heartbeat wasn't received: {}", action_ex.id
|
||||
)
|
||||
|
||||
task_ex = db_api.get_task_execution(
|
||||
action_ex.task_execution_id
|
||||
)
|
||||
|
Reference in New Issue
Block a user