← Code Exchange

Analyze Workflow History with Gemini

Reads Temporal Workflow Histories looking for errors and provides guidance on how to remedy them, leveraging Google Gemini 2.0 Flash model.

Identifies these types of issues:

Failing Activities

  • Activity Retries > 5
  • Failures due to business reasons

Failing Workflow Tasks

  • Bugs in Code
  • Non-Determinism Errors
  • Potential Deadlocks Detected

Here is example output (JSON):

Analyze Workflow History with Gemini JSON screenshot

And response from the analyzer: Analyze Workflow History with Gemini result

Language:

Python

Python

💖 Community geminiaihistory

About the Author

Rick Ross Photo

Rick Ross

Solutions Architect

Temporal