-
Notifications
You must be signed in to change notification settings - Fork 201
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
Scheduler just terminates randomly for no apparent reason #10
Comments
Hello, this is not a rufus-scheduler issue. It's simply Passenger killing instances after a while. http://groups.google.com/group/rufus-ruby/search?group=rufus-ruby&q=passenger http://www.modrails.com/documentation/Users%20guide%20Apache.html#PassengerMinInstances http://www.modrails.com/documentation/Users%20guide%20Apache.html#PassengerPoolIdleTime Best regards, John |
Ah, thanks a lot for clearing that up. |
Done Best regards, John |
Hi! The code follows, hope it helps. Basically you should only redefine the execute_scheduler function basing on your needs.
Best regards! |
将軍 : many thanks, but nobody will read this here, in a closed issue report. If you really want to help you could post that to the mailing list (http://groups.google.com/group/rufus-ruby/). Best regards and thanks again, |
Just done! |
Excellent ! |
Did this suddenly change in Passenger 3. |
No idea, this thread is dead. Cheers, John |
I know this is a dead thread, but I found this via google when I was looking for the problem, so in case anyone else has the problem, just set these in your virtual host RailsAppSpawnerIdleTime 0 |
Excellent, thanks ! |
Unfortunately, none of the above worked for me. The only thing that is actually working for me is setting: PassengerSpawnMethod conservative In the VirtualHost at the apache.conf file I will keep my eyes and ears opened for a better solution :) |
The solution @concept47 presented works for me also. Just put
in my vhost configuration and it worked. Thanks again. System: |
I developed an Application with Sinatra+Rufus+Datamapper+Other helper Gems, and It is deployed in AWS Elastic Beanstalk. I solved the problem with the @ShogunPanda approach and It's working great for me now. Here is my adaptation in Sinatra's case: `
end This helper class is call from
I hope this helps to others who are using Sinatra + Rufus. Thank you @ShogunPanda!!! |
@jproyo You're welcome! :) |
Strange problem: In my scenario Rufus Scheduler terminates at different points during task execution for no apparent reason.
This is my config/initializers/task_scheduler.rb:
Now, when I restart passenger I always get mixed results how "far" rufus gets before he terminates:
This is from today:
2 days before:
From the same day:
As you can see, the scheduler just kind of stops working at seemingly random points. All of the jobs in my scheduler file run fine when executed by hand and, even worse, also fine by the scheduler because I can see in the logs that every job has been executed successfully multiple times.
I tried a lot of things:
The result is always the frustrating one from - I can't see any system / logic behind Rufus just stopping to work.
How can I debug this further?
Sys-Info:
The text was updated successfully, but these errors were encountered: