Open arumoy-shome opened 7 years ago
We want to create a new term record on the first day of the month in which a term begins. For simplicity:
Winter term: Jan 1 Spring term: May 1 Fall term: Sept 1
Pick a queuing backend. Rails by default keeps the jobs in RAM, if the production machine is down, all the future jobs are lost hence we need to persist the jobs using a 3rd party backend.
Write an ActiveJob to create a new term record at the beginning of each term.