fishbaseapi icon indicating copy to clipboard operation
fishbaseapi copied to clipboard

Stability / Error handling

Open cboettig opened this issue 11 years ago • 3 comments

Might be good for the app to be robust to any of the non-essential components going down or not responding? This would also allow a user to deploy without things like the redis and/or logstash containers if they'd prefer.

  • [ ] recover option to skip handle a failed attempt to connect to redis, which would also need to trip some kind of flag to avoid any later calls to cache or read from cache I think.
  • [ ] similarly for logging, though I suppose logs could be written locally
  • [ ] might be good to be able to turn off logging completely?

cboettig avatar Feb 14 '15 00:02 cboettig

Is there any way to pass options to docker to toggle these things? or better to do in a config file?

Right, so be able to skip caching and logging, and turn off logging completely

sckott avatar Feb 14 '15 01:02 sckott

@cboettig how do you like the approach so far by having variables set at the top of the api.rb file? see https://github.com/ropensci/fishbaseapi/blob/master/api.rb#L11-L12

sckott avatar Feb 24 '15 22:02 sckott

:+1:

cboettig avatar Feb 24 '15 23:02 cboettig