Scheduling Rake Tasks in Morph Control Panel (Rails)
|
|
Rails applications often require scheduled jobs that run in the background. Historically, this has been achieved by running cron jobs. With Morph AppSpace, the process is slightly different. Rather than using cron to execute scheduled jobs, we recommend the use of scheduled Rake tasks.
Follow these steps to schedule Rake tasks in Morph Control Panel.
The following buttons are available for specifying when your Rake task will execute
|
|
|
Output from the rake task will be preserved and reported back after the task is finished, but only if it is less than 8k. |
|
|
Important is a restriction on the execution times of ‘Run On Date’ tasks. Those are limited to “approx 6 hours” according to one post. My experience is 2-3 hours. Coupled with the undefensible max log file length limit for your rake task, and what you get is tasks that end randomly, leaving no output. sarcarstic comment deleted Comeon, even giving us the last 2k would be nice. Also, the only events that are current defined are “run on application start”, “run on application stop”. |
|
|
Hi robmathews, Yes, the maximum execution time of ‘Run on Date’ or ‘Run on Event’ is only up to 5 hours of execution time. ‘Before app starts’ and ‘After app has started’ are currently the only defined events in Control Panel. Please express the events that you want to add. We will forward it to the management for consideration. Regards, |