ourresearch / total-impact-core

An api and backend code to gather the impacts of diverse scholarly products online.
http://impactstory.org
Other
55 stars 7 forks source link

catch memcached too big exceptions #132

Closed hpiwowar closed 11 years ago

hpiwowar commented 11 years ago

handle this error by failing immediately, so it doesn't waste time retrying.
the fix will also decrease triggering "exceptions" alert in log files.

Jul 13 06:48:08 ti-core app/worker.1:  [2]    DEBUG            webpage-BIBLIO-lz5o ti.utils - Retry: MemcachedError('error 37 from memcached_set: ITEM TOO BIG',) 
Jul 13 06:48:09 ti-core app/worker.1:  [2]    DEBUG            webpage-BIBLIO-lz5o ti.utils - Retry: MemcachedError('error 37 from memcached_set: ITEM TOO BIG',) 
Jul 13 06:48:13 ti-core app/worker.1:  [2]    DEBUG            webpage-BIBLIO-lz5o ti.utils - Retry: MemcachedError('error 37 from memcached_set: ITEM TOO BIG',) 
Jul 13 06:48:13 ti-core app/worker.1:  [2]    DEBUG            webpage-BIBLIO-lz5o ti.utils - Tried mightily, but giving up after 3 'MemcachedError('error 37 from memcached_set: ITEM TOO BIG',) exceptions.'