Norat Saraswat
Norat Saraswat

Reputation: 11

How to setup schedular/Cron jobs on AWS Env with Rails Application

Currently i am using AWS Elastic beanstalk for web application deployment. I am using rails framework for backend and mysql(RDS) for database. Now i need to automate my background tasks(e.g. sending bulk emails,create reports etc.). So what would be best possible way to run cronjobs(background task).

I couldn't find any suitable example in Stack Overflow as well as google.

Upvotes: 1

Views: 1635

Answers (3)

Adittya Verma
Adittya Verma

Reputation: 289

There are lots of article about setup cron job. I am sharing one of best cronjob setup tutorial below.

Click Here

Upvotes: 1

Tanish Gupta
Tanish Gupta

Reputation: 29

I have been using delayed_job gem. It's easy to start with and can manage background workers easily. For more information on other background jobs, follow below link https://www.sitepoint.com/comparing-background-processing-libraries-sidekiq/

Upvotes: 1

Sudheer Singh
Sudheer Singh

Reputation: 61

There are so many options available to achieve mentioned target.If we take the specific example of sending an email and generating reports. I would suggest giving a try to Whenever Gem. You can schedule your rake task to run at specific intervals. I am sure it will best suit to your requirement,If not or you want to build more robust and event based cron jobs then check out Aws Lambda and step functions along with Cloud Watch Events events.

Upvotes: 1

Related Questions