Skip to content

Commit

Permalink
wop
Browse files Browse the repository at this point in the history
  • Loading branch information
edwintorok committed Apr 18, 2024
1 parent d156fcd commit 617cf02
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ocaml/xapi/xapi_event.ml
Original file line number Diff line number Diff line change
Expand Up @@ -720,6 +720,10 @@ let from ~__context ~classes ~token ~timeout =
in
let subs = List.map Subscription.of_string classes in
let deadline = Unix.gettimeofday () +. timeout in
(* TODO: special case for task here? set before/after to 0 so we return quickly
also then overall rusage based throttler, perhaps very simple ewma filter with 0.75 new?
*)

(* We need to iterate because it's possible for an empty event set
to be generated if we peek in-between a Modify and a Delete; we'll
miss the Delete event and fail to generate the Modify because the
Expand Down

0 comments on commit 617cf02

Please sign in to comment.