Answer the question
In order to leave comments, you need to log in
Why is faye blocking delayed_job?
Situation.
Site on ruby on rails. There are sockets with faye and delayed tasks with delayed_job support.
Problem following:
In delayed_job the task which launches a method in model is created.
In the method, a letter is sent by the socket:
require 'eventmachine'
EM.run {
client = Faye::Client.new('https://pervichka.pro/faye')
client.publish('/notification/'+user.id.to_s, 'id' => notification.id)
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question