Remove Mistral from st2-track-result
@@ -52,13 +52,6 @@ def add_result_tracker(exec_id):
# Check runner type.
runner_type = exec_db.action.get('runner_type')
- # Although mistral runner is removed, we want to leave in the result
- # tracker so it can be enabled for other runners easily. Adjust this
- # if when runners that support result tracker are added.
- if runner_type != 'mistral-v2':
- LOG.error('Result tracker is only supported for Mistral workflows.')
- return
-
# Skip if action execution is completed.
if exec_db.status in action_constants.LIVEACTION_COMPLETED_STATES:
LOG.info('Action execution "%s" is already in a completed state.', exec_id)
@@ -85,13 +78,6 @@ def add_result_tracker(exec_id):
except Exception as e:
LOG.error('Unable to create result tracker entry for "%s". %s', exec_id, str(e))
- # Add result tracker for children workflows.
- for child_exec_id in exec_db.children:
- child_exec = ActionExecution.get(id=child_exec_id, raise_exception=True)
- if child_exec.runner['name'] == 'mistral-v2':
- LOG.info('Adding result tracker for children "%s"...', child_exec_id)
- add_result_tracker(child_exec_id)
-
def del_result_tracker(exec_id):
LOG.info('Retrieving action execution record...')
