Skip to content

Handling OutputValidationError retry loops and workflow hangs with local LLMs #260

@seyeop03

Description

@seyeop03

I am currently testing Shannon using a local LLM (Qwen 3.5 122B via an OpenAI-compatible endpoint). During my testing, I've encountered a few workflow stability issues and would appreciate some guidance on how to configure or handle them.

1. OutputValidationError and Temporal Retry Loops

The pre-recon agent successfully progresses through many turns but eventually fails with an OutputValidationError.

The main challenge is that Temporal treats this validation failure as a retryable error (nonRetryable: false). As a result, instead of failing fast, the system enters a retry loop. I observed a single pre-recon activity running for over 75 minutes (elapsedSeconds: 4484) across multiple attempts, consuming significant resources and appearing to hang.

Image

Temporal Dashboard Log:

{
  "sdkComponent": "worker",
  "taskQueue": "shannon-pipeline",
  "attempt": 2,
  "activityType": "runPreReconAgent",
  "error": "ApplicationFailure: Agent pre-recon failed output validation",
  "cause": {
    "type": "OutputValidationError",
    "nonRetryable": false
  },
  "durationMs": 386443
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions