QuestionQ12

Test and manage agents

An agent uses a flow that calls an external service which can occasionally fail or time out.

When a failure occurs, the agent must meet the following requirements:

  • Must not terminate silently.
  • Must send a notification containing the error details.
  • You need to configure the agent flow so that failures are handled in a controlled and predictable way.

Solution: Retry the failing action without handling the failure.

Does this solution meet the goal?

Explanation

A retry policy can recover from temporary service or network faults, but it does not itself handle an action that still fails after its retry attempts. Controlled handling requires a failure path—such as a run-after or catch scope—that captures the error details and sends the required notification.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!