actionqueue-budget 0.1.0

Budget enforcement, suspend/resume, and event subscriptions for the ActionQueue task queue engine.
Documentation
  • Coverage
  • 100%
    44 out of 44 items documented0 out of 28 items with examples
  • Size
  • Source code size: 42.33 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 4.5 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 26s Average build duration of successful builds.
  • all releases: 26s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • zed-colonel/actionqueue
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • zed-colonel

actionqueue-budget

Budget enforcement, suspend/resume, and event subscriptions for the ActionQueue task queue engine.

Overview

This crate provides in-memory budget tracking and event subscription matching:

  • BudgetTracker -- Per-task budget state (allocations, consumption, exhaustion)
  • BudgetGate -- Pre-dispatch eligibility check against budget limits
  • SubscriptionRegistry -- Active event subscription state management
  • Event matching -- ActionQueueEvent-to-subscription filter matching

Budget dimensions: Token, CostCents, TimeSecs. Suspended attempts do not count toward max_attempts. Requires the budget feature flag at the workspace level.

Part of the ActionQueue workspace

See the workspace root for full documentation.

License

MIT