Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor calls to SaniGetWorker.schedule #16

Open
macool opened this issue Feb 24, 2014 · 1 comment
Open

Refactor calls to SaniGetWorker.schedule #16

macool opened this issue Feb 24, 2014 · 1 comment

Comments

@macool
Copy link
Member

macool commented Feb 24, 2014

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
Copy link
Member Author

macool commented Mar 15, 2014

.. Or use sidetiq

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant