Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

So I have a method that is run every 10 minutes (Background.cron) to be exact.

Background.cron loops through a set of database rows and if certain criteria are met, an ActionMailer method is run to send out an email.

But what seems to be happening is (according to my logs) when the ActionMailer method is run, the Background.cron method stops until the next cron job is ready to start.

What could the explanation for this be?

Server setup is Apache 2 with Passenger and Ruby Enterprise Edition.

PassengerMaxPoolSize is set to 10 and PassengerMaxInstancesPerApp is 5.

I have a 512MB slice on Slicehost.

share|improve this question
This sounds like a job for... stackoverflow! – womble Nov 20 '09 at 22:14
up vote 1 down vote accepted

Sounds like the Ruby script is bombing at that point. Wrap your mail methods and catch any exceptions raised, and log? Also, check your user's local mail spool. Cron may have already emailed you a Ruby BT.

share|improve this answer
Checking the mail methods ended up exposing the issue. – Shpigford Nov 22 '09 at 20:54

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.