Task Error Handling - onSuccess/onFailure #469
Replies: 1 comment 3 replies
-
Right now unrecoverable errors in task execution are dealt with by cancelling the task. Your fleet adapter can monitor whether the robot is successfully executing its commands and then cancel the task based on the current task ID. The composed task schema lets you specify actions to take when cancelling the task at each phase. You could put some error handling behavior inside that cancellation sequence. In your specific example, since the error handling is just to go to the charger, you probably don't need to include any special cancellation sequence. If you just use the We don't currently support any retry loops within the core task execution pipeline. As you've already seen, support for more generalized task flows is something we're actively working on, but is not available yet. |
Beta Was this translation helpful? Give feedback.
-
Hey.
What would be the best solution to implement a task state error handling as part of a generalized composition?
I am looking for a solution to implement the following flow:
Is it possible to do it as part of the core that applies to the entire fleets (e.g., rmf_task & fleet_adapter), and not as a hack on the fleet adapter vendor side?
Thanks!
Itamar
Beta Was this translation helpful? Give feedback.
All reactions