Skip to content

Commit

Permalink
Disable concurrent ActionCable workers
Browse files Browse the repository at this point in the history
Otherwise, the ACE events we receive might not be forwarded in the same order. For now, I am not aware of another mechanism to ensure the correct ordering, so that I decided to use this approach for now. Might need to be improved later.
  • Loading branch information
MrSerth committed Sep 12, 2023
1 parent 410d2f7 commit 70435a5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -60,5 +60,8 @@ class Application < Rails::Application

# Extract Sentry-related parameters from WebSocket connection
config.middleware.insert_before 0, Middleware::WebSocketSentryHeaders

# Disable concurrent ActionCable workers to ensure ACE change events keep their order
config.action_cable.worker_pool_size = 1
end
end

0 comments on commit 70435a5

Please sign in to comment.