Question about running whenever gem

62 views
Skip to first unread message

gerberdata

unread,
Jan 12, 2012, 6:02:46 PM1/12/12
to Whenever Gem
When I use the capistrano task it seems to run the script on deploy.
My whenever settings
are to run every two hours. Is there a way the script not to run when
I deploy. Here is my error
which is causing a rollback.

"cd /home/root/cool_cars.com/current && bundle exec whenever --update-
crontab tweets --set environment=production"
servers: ["coolcars.com"]
[coolcars.com] executing command
** [out :: coolcars.com] /usr/local/lib/ruby/gems/1.9.1/gems/
twitter-2.0.2/lib/twitter/response/raise_client_error.rb:16:in
`on_complete': Rate limit exceeded. Clients may not make more than 150
requests per hour. (


then rollback

my whenever schedule.rb has
every 2.hours do

runner Tweet.cool_car_tweets

end

Javan Makhmali

unread,
Jan 12, 2012, 6:42:12 PM1/12/12
to whenev...@googlegroups.com
Are you saying you think `Tweet.cool_car_tweets` is executed as whenever writes your crontab?

-Javan

> --
> You received this message because you are subscribed to the Google
> Groups "Whenever Gem" group and because you're awesome.
> To post to this group, send email to whenev...@googlegroups.com
> To unsubscribe from this group, send email to
> whenever-gem...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/whenever-gem?hl=en

Reply all
Reply to author
Forward
0 new messages