iron-io / iron_worker_ruby_ng

Next Gen Ruby gem for IronWorker
www.iron.io
BSD 2-Clause "Simplified" License
58 stars 22 forks source link

Better Documentation for limit errors #87

Closed carimura closed 12 years ago

carimura commented 12 years ago

I tried scheduling a task to run every 30 seconds and API returned

400 Bad Request (Rest::Wrappers::RestClientExceptionWrapper)

Took me 15 minutes to figure out that run_every's minimum is 60 seconds. Needs to be handled here as well as in our docs.

iced commented 12 years ago

Fixed by @treeder in latest rest.

/home/iced/.rvm/gems/ruby-1.9.3-p194@iron/gems/iron_core-0.2.0/lib/iron_core/client.rb:151:in `parse_response': {"msg":"Schedule run_every can't be less than 60 seconds."} (IronCore::ResponseError)

While not perfect, it's readable by human and explains what's going on.