tasks: [
{failed: true, remarks: "",task: {'name': 'task1'}},
{failed: true, remarks: "",task: {'name': 'task2'}},
]
Is there a way to determine the overall status of all tasks based on their success or failure?
For instance, if all tasks have failed: true
, then the overall status should be FAILED
If all tasks have failed: false
, then the overall status should be PASSED
However, when the data is arranged as follows:
tasks: [
{failed: failed, remarks: "",task: {'name': 'task1'}},
{failed: true, remarks: "",task: {'name': 'task2'}},,
{failed: true, remarks: "",task: {'name': 'task3'}}
]
In this scenario, the overall status would automatically be set to FAILED