Skip to content

Commit 8d15247

Browse files
readd log
1 parent b882f67 commit 8d15247

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

playbooks_engine/tasks.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
from protos.playbooks.playbook_commons_pb2 import PlaybookTaskResult
1313
from protos.playbooks.playbook_pb2 import PlaybookTask
1414
from utils.proto_utils import dict_to_proto, proto_to_dict
15+
from integrations.utils.executor_utils import check_multiple_task_results
1516

1617
logger = 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)

0 commit comments

Comments
 (0)