From 70435a5d0870a14c5b0b5b81e71ecedb51fd133b Mon Sep 17 00:00:00 2001 From: Sebastian Serth Date: Wed, 13 Sep 2023 01:11:29 +0200 Subject: [PATCH] Disable concurrent ActionCable workers 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. --- config/application.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/config/application.rb b/config/application.rb index b4611651..78736df8 100644 --- a/config/application.rb +++ b/config/application.rb @@ -60,5 +60,8 @@ module CodeOcean # 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