rufus scheduler not running in production

一笑奈何 提交于 2019-12-02 03:01:08

Most likely, this problem is caused by the Rufus scheduler background thread being terminated after Phusion Passenger spawns a child process as part of the smart spawning method.

Read Spawning methods explained. The specific issue you're suffering from is probably Smart spawning caveat #2: the need to revive threads.

You need to revive the Rufus scheduler thread using the mechanism in the documentation. I'm not exactly sure which API call you need to make, so maybe you can ask the Rufus scheduler authors.

Alternatively, you can use the 'direct' spawning method. It's less efficient but it avoids compatibility issues like this.

Mihai P.

So, I found the answer here

I've added these two lines in nginx.conf (after passenger_enabled on;):

    rails_app_spawner_idle_time 0;
    passenger_min_instances 1;

That keeps one passenger thread active.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!