Rails apps with puma on cluster mode not catching up flag changes when local evaluation is enabled
@zachaysan já está trabalhando nisso.
Desde 18/6/2024.
Avaliação
Esta issue ainda não foi avaliada.
Descrição
Context
When the following conditions are met, the local environment of the rails server does not refresh the flag states...the environment document request actually happens, tough.
- rails app
- puma (on cluster mode - even with 1 worker 1 thread)
- local evaluation enabled
- booting with
rails scommand
Steps to reproduce
- Create a new rails app
- Configure puma with cluster mode (set a value above zero for
workersonconfig/puma.rb) - Create an initializer, defining the global variable, just like the documentation shows. Local evaluation must be enabled
- boot the server with
rails s - check if the flagsmith client is responding to flag state changes on the flagsmith dashboard between every environment document request
Useful info
- Works normally with puma on single mode
- Puma worker and thread count does not matter to the issue
- On puma cluster mode, it seems like there is something wrong with the puma boot using the
bundle exec rails scommand, since runningbundle exec puma -t 1:1 -w 1:1looks fine - Worth mentioning that the local evaluation on the
rails cconsole, the normal behavior occurs - Tested on macOs Ventura 13.6.7 (M1 chip) and Ubuntu 22 (x64)
Example project
https://github.com/Guilherme2112/flagsmith-rails-example
(basic instructions at README)
- Linguagem predominante
- Ruby
- Estrelas
- 12
- Forks
- 7
- Merge médio
- 2h 19min
- PRs com merge (30d)
- 2
Preparar o ambiente
Este projeto não oferece contêiner de desenvolvimento, Dockerfile nem guia de contribuição, então a configuração fica por sua conta: comece pelo README e veja nosso guia da primeira contribuição para os passos gerais.
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de Flagsmith/flagsmith-ruby-client
-
Local evaluation buckets percentage splits with the server key, so results differ from FlagsmithAberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 75/100
-
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 55/100
-
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 48/100
-
Dependency DashboardAberta
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 15/100
-
Local evaluation silently drops identity overrides on large environmentsTalvez já em andamento @marc-merino assumiu há 14 dias. Aberta
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 55/100
Todas as issues de Flagsmith/flagsmith-ruby-client
Issues semelhantes
-
Bug: Assistant replies lose the space before numbers ("Oct7", "as of10-22-2026") with OpenAI modelsAberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 84/100
we-promise/sure#4441 ·
Mantenedores costumam responder em até 1 dia
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 70/100
lugassawan/swe-workbench#823 ·
Mantenedores costumam responder em até 1 dia
-
[BUG] Transcription spans omit the requested temperatureTalvez já em andamento @yorzi assumiu hoje. Abertabug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 88/100
crmne/ruby_llm#1276 · 1 reação ·
Mantenedores costumam responder em até 1 dia
-
Admin user page looks up a Tag for every instance-scoped role (`Role#resource_name`)Talvez já em andamento @pkfrank assumiu hoje. Abertabug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
forem/forem#24083 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
rubyjs/mini_racer#449 ·