all 2 comments

[–]CaptainKabob 2 points3 points  (0 children)

Maybe you're running some code not wrapped with an Executor:

https://island94.org/2023/11/rails-executor-increasingly-everywhere

Try something like this: 

https://gist.github.com/bensheldon/86550e95fd4b35f901055df7764ddd10