-
-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SIGKILL (signal 9) on many concurrent emails #96
Comments
hello sorry for taking so long to respond, I tried using the gem from the github pull request, with this I get to wait a very long time to get the html files ready, (over half an hour) as a result several of the tasks were still killed:
but it seems that all the html files were created.
and were all identical files |
@DonGiulio If you can't get anywhere with your current approach, can you pre-generate MJML > HTML templates in background tasks and then use those templates to be populated for realtime sending? |
Hello,
in our prod platform.sh we are getting tons of errors saying
(process status: pid 96294 SIGKILL (signal 9))
I checked the source of the GEM and managed to track down the issue to something to do with Open3.
Where basically running many times concurrently mjml becomes really slow (taking many minutes to complete), and I believe this takes Open3 to kill the tasks for some reasons.
here's how I managed to reproduce the issue on a platform.sh PaaS environment, linux based:
hangs for a few minutes on the waitall command, and then it outputs:
something like:
[[15687, #<Process::Status: pid 15687 SIGKILL (signal 9)>], [15700, #<Process::Status: pid 15700 exit 0>], [15714, #<Process::Status: pid 15714 SIGKILL (signal 9)>], [15774, #<Process::Status: pid 15774 SIGKILL (signal 9)>], [15817, #<Process::Status: pid 15817 SIGKILL (signal 9)>], [15895, #<Process::Status: pid 15895 SIGKILL (signal 9)>], [15903, #<Process::Status: pid 15903 SIGKILL (signal 9)>], [15942, #<Process::Status: pid 15942 SIGKILL (signal 9)>], [15961, #<Process::Status: pid 15961 SIGKILL (signal 9)>], [15969, #<Process::Status: pid 15969 SIGKILL (signal 9)>], [15977, #<Process::Status: pid 15977 SIGKILL (signal 9)>], [16013, #<Process::Status: pid 16013 SIGKILL (signal 9)>], [16027, #<Process::Status: pid 16027 SIGKILL (signal 9)>], [16037, #<Process::Status: pid 16037 SIGKILL (signal 9)>], [16044, #<Process::Status: pid 16044 SIGKILL (signal 9)>], [16196, #<Process::Status: pid 16196 SIGKILL (signal 9)>], [16215, #<Process::Status: pid 16215 SIGKILL (signal 9)>], [16020, #<Process::Status: pid 16020 SIGKILL (signal 9)>], [16034, #<Process::Status: pid 16034 SIGKILL (signal 9)>], [16160, #<Process::Status: pid 16160 SIGKILL (signal 9)>], [15882, #<Process::Status: pid 15882 SIGKILL (signal 9)>], [15922, #<Process::Status: pid 15922 SIGKILL (signal 9)>], [15934, #<Process::Status: pid 15934 SIGKILL (signal 9)>], [16000, #<Process::Status: pid 16000 SIGKILL (signal 9)>], [16176, #<Process::Status: pid 16176 SIGKILL (signal 9)>], [15675, #<Process::Status: pid 15675 SIGKILL (signal 9)>], [15718, #<Process::Status: pid 15718 SIGKILL (signal 9)>], [15731, #<Process::Status: pid 15731 SIGKILL (signal 9)>], [15744, #<Process::Status: pid 15744 SIGKILL (signal 9)>], [15756, #<Process::Status: pid 15756 SIGKILL (signal 9)>], [15791, #<Process::Status: pid 15791 SIGKILL (signal 9)>], [15804, #<Process::Status: pid 15804 SIGKILL (signal 9)>], [15826, #<Process::Status: pid 15826 SIGKILL (signal 9)>], [15843, #<Process::Status: pid 15843 SIGKILL (signal 9)>], [15852, #<Process::Status: pid 15852 SIGKILL (signal 9)>], [15864, #<Process::Status: pid 15864 SIGKILL (signal 9)>], [16105, #<Process::Status: pid 16105 SIGKILL (signal 9)>], [16132, #<Process::Status: pid 16132 SIGKILL (signal 9)>], [16142, #<Process::Status: pid 16142 SIGKILL (signal 9)>], [16099, #<Process::Status: pid 16099 SIGKILL (signal 9)>]]
I initially thought this was caused by a timeout, but I also got the same bunch of sigkills after just a few seconds from starting the pool.
I believe that I'm seeing here the issue we are having in prod. Where trying to send several emails at the same time (sidekiq workers) causes them to fail and be sigkilled
The text was updated successfully, but these errors were encountered: