Homec4science

WebJournal: catch ValueError when reading cache

Authored by Jerome Caffaro <jerome.caffaro@cern.ch> on Aug 9 2012, 15:01.

Description

WebJournal: catch ValueError when reading cache

  • Reading the cPickled cache might raise ValueError exception when some process is concurrently writing to the cache. Ignore exception and retrieve value from database instead of cache.

Details

Committed
Tibor Simko <tibor.simko@cern.ch>Aug 10 2012, 14:36
Parents
R3600:194cf2430ba7: WebSearch: more uses of `rg` configurable default
Branches
Unknown
Tags
Unknown

Event Timeline

Tibor Simko <tibor.simko@cern.ch> committed R3600:aa479d0d8d47: WebJournal: catch ValueError when reading cache (authored by Jerome Caffaro <jerome.caffaro@cern.ch>).Aug 10 2012, 14:36