File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change 1212from protos .playbooks .playbook_commons_pb2 import PlaybookTaskResult
1313from protos .playbooks .playbook_pb2 import PlaybookTask
1414from utils .proto_utils import dict_to_proto , proto_to_dict
15+ from integrations .utils .executor_utils import check_multiple_task_results
1516
1617logger = logging .getLogger (__name__ )
1718
@@ -28,6 +29,8 @@ def fetch_playbook_execution_tasks():
2829 f'Cloud: { response .json ()} ' )
2930 return False
3031 playbook_task_executions = response .json ().get ('playbook_task_executions' , [])
32+ num_playbook_task_executions = len (playbook_task_executions ) if check_multiple_task_results (playbook_task_executions ) else 1
33+ logger .info (f'fetch_playbook_execution_tasks:: Found { num_playbook_task_executions } playbook task executions' )
3134 for pet in playbook_task_executions :
3235 try :
3336 request_id = pet .get ('proxy_execution_request_id' , None )
You can’t perform that action at this time.
0 commit comments