Skip to content

[Control Plane] Kubernetes new deployments causes every in-flight run to fail and never recover #987

Description

@pocesar

Describe the bug

When there's a reasoner that is acting like an orchestrator, and can take 5-10 minutes to complete, it has a high chance of destroying the entire run (which is composed by multiple reasoners and skills) with the "in-flight reasoner cannot be revived" error.

The only workaround is to re-run the same entrypoint reasoner with the same inputs and start again. Happily, when this is done, the run will blast through until the step where it got killed due the persisted intermediary steps and the 1h cache that is enabled.

Steps to reproduce

  1. Go to '...'
  2. Run '...'
  3. See error

Expected behavior

When a reasoner or skill gets killed, there should be a way to restart the root run, keeping the same execution ID so the external consumers don't need to implement any sort of retries or re-submission.
It's a trade-off for the immutability and deterministic behavior that is expected when you call the same reasoner with the same input, but generates different execution / run IDS, should be an opt-in flag

Screenshots / Logs

Environment

  • Control plane version: 0.1.127
  • SDK version (if applicable): Python SDK
  • Deployment environment (local, docker, kubernetes, etc.): Kubernetes

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions