vilcabamba / bandango

monster under development
http://vilcabamba.github.io/bandango/
Apache License 2.0
1 stars 1 forks source link

Refactor calls to `SaniGetWorker.schedule` #16

Open macool opened 10 years ago

macool commented 10 years ago

Current implementation is via whenever: 0,15,30,45 * * * * /bin/bash -l -c 'cd /home/pi/bandango && bin/rails runner -e production '\''SaniGetWorker.schedule'\'' >> /home/pi/bandango/log/cron.log 2>&1'

New implementation should avoid reloading the environment as it takes too much on the Pi. Maybe add a SaniGetSchedulerController#index so that the crontab wgets it to schedule

macool commented 10 years ago

.. Or use sidetiq