2

I am using whenever gem to schedule cron job every 15 minutes in my rails 3.2 application and capistrano gem to deploy it on amazon EC2 instance.

The issue is:

Whenever I deploy with cap deploy, the cron job works fine(every 15minutes). But it stops after some variable hours. The next day, when I see cron log, the cron job had already stopped running. I deploy the code again and the cron job starts working again and stops after some hours.

Please help.

shweta
  • 8,019
  • 1
  • 40
  • 43
  • any chance you could share your schedule code and/or the corresponding crontab command generated – KorreyD Jan 07 '14 at 18:10
  • I found the problem, Actually I have 2 applications on amazon server, whenever I deploy the another application(the one without scheduler), crontab becomes empty, cause capistrano updates crontab each time the code is deployed. – shweta Jan 25 '14 at 09:41

0 Answers0