Long running jobs in Passenger

12 просмотров
Перейти к первому непрочитанному сообщению

Arindam Mukherjee

не прочитано,
5 сент. 2016 г., 17:37:0205.09.2016
– Phusion Passenger Discussions
I have been trying to figure out a way to get long running jobs to work reliably without sidekiq, etc. Found the following:

https://github.com/phusion/passenger/issues/1211#issuecomment-244812847

Has an interesting comment at the end by user skycaptainskycaptain:

> I, having not much previous experience with Passenger, had some trouble getting an infinite running SuckerPunch job staying alive with Rails, as all the info I found said it will not work, but after some studying I have it working. I can share the details if someone wants them, but for all I know this is something that was addressed in an update like a year ago. Anyways it was all about having the runner in the preloader process and configuring that one to never time out.

What is meant by "runner in the preloader process" and how do I configure it to never time out?

Camden Narzt

не прочитано,
9 сент. 2016 г., 15:49:1509.09.2016
– Phusion Passenger Discussions
By "runner in the preloader process", I assume skycaptainskycaptain meant that he starts his job before the app gets forked by the smart spawner system. Preloading is documented here.

And the answer to how do you configure it to never time out is in the question you linked to, you can set the max-preloader-idle-time-max_preloader_idle_time to 0 to have it never time out.

And the answer to each of the questions in your follow up post are yes. If you don't know the job ahead of time this method won't help. You would have to figure out a system using IPC.
Ответить всем
Отправить сообщение автору
Переслать
0 новых сообщений