Skip to content

Commit

Permalink
Do not enable Event.next throttling when Event.next is not disabled
Browse files Browse the repository at this point in the history
It slows down all synchronous API calls that create tasks, like VM.start.
  • Loading branch information
edwintorok committed Jan 7, 2025
1 parent 8671370 commit 5abe5f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ocaml/xapi/xapi_event.ml
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ let unregister ~__context ~classes =

(** Blocking call which returns the next set of events relevant to this session. *)
let rec next ~__context =
let batching = !Xapi_globs.event_next_delay in
let batching = if !Constants.use_event_next then !Xapi_globs.event_from_task_delay else !Xapi_globs.event_next_delay in
let session = Context.get_session_id __context in
let open Next in
assert_subscribed session ;
Expand Down

0 comments on commit 5abe5f8

Please sign in to comment.