Long running jobs in Passenger

閲覧: 12 回
最初の未読メッセージにスキップ

Arindam Mukherjee

未読、
2016/09/05 17:37:022016/09/05
To: 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

未読、
2016/09/09 15:49:152016/09/09
To: 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 件