Skip to content

[controller][feat] add realtime snapshot#101

Merged
mr-chelyshkin merged 2 commits into
mainfrom
controller-snapshot
Jun 27, 2026
Merged

[controller][feat] add realtime snapshot#101
mr-chelyshkin merged 2 commits into
mainfrom
controller-snapshot

Conversation

@mr-chelyshkin

@mr-chelyshkin mr-chelyshkin commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

📝 Description

Adds controller_snapshot() to SupervisorHandle;
Add event duration.

✅ Checklist

  • Documentation updated (README, rustdoc, examples)
  • Tests added/updated (if relevant)
  • No breaking changes introduced
  • CI passes locally

Examples

if let Some(snap) = handle.controller_snapshot().await {
    println!(
        "running={}, queued={}",
        snap.running_count(),
        snap.total_queued()
    );

    if let Some(slot) = snap.slot("deploy") {
        println!(
            "deploy: {:?}, depth={}",
            slot.status,
            slot.queue_depth
        );
    }
}

@mr-chelyshkin mr-chelyshkin self-assigned this Jun 26, 2026
@mr-chelyshkin mr-chelyshkin added the feature feature label Jun 26, 2026
@mr-chelyshkin mr-chelyshkin merged commit 9fc7a03 into main Jun 27, 2026
21 checks passed
@mr-chelyshkin mr-chelyshkin deleted the controller-snapshot branch June 27, 2026 05:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant