balena-io-modules / mahler

A automated task composer and HTN based planner for building autonomous system agents.
Apache License 2.0
7 stars 1 forks source link

Settle parallel branches before re-planning #66

Closed pipex closed 5 months ago

pipex commented 5 months ago

The agent runtime now runs parallel branches with Promise.allSettled instead of Promise.all. After the execution is finished, if any of the branches returns a failure, the plan execution is interrupted and re-planning proceeds. This prevents moving on too soon when a failure is encountered and causing unnecessary re-plans. This also moves logging earlier in the plan execution to get feedback as soon as an action is executed successfully or it fails.

Change-type: patch

pipex commented 5 months ago

I self-certify!