Skip to content

Add completion notifications for orchestrated VMs #30

@AlephNotation

Description

@AlephNotation

Problem

When running prompts on multiple VMs via the orchestrator, we currently have to poll for completion status. This is inefficient and makes it hard to know when agents have finished their work.

Proposed Solution

Add a notification mechanism so that we can be notified when agents complete their tasks:

  1. SSE events - The /events/vms endpoint could emit task_completed events when a VM finishes processing
  2. Webhook support - Option to configure a webhook URL that gets called on completion
  3. CLI notification - vers-client.sh vm-wait-any that blocks until any VM completes

Current Workaround

We have to poll session/outputs or check metrics.queueLength repeatedly to detect completion.

Related

This came up while orchestrating 5 VMs to work on PRs in parallel - we had to keep checking status manually.

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