Greplin/greplin-exception-catcher — comment on commit c99bca5c623bca4f2279618871e32ee7085a05cc
File:  line 0
By stefanp:

Simplified upload.py by removing the global lock; we now
* lock per-file (so multiple instances should work ok)
* cut strings in our json object to 4096 bytes before upload
* set an http timeout
* try to exit after 40 seconds (this script is meant to be run every minute or so)

Also, we don't delete older files anymore, and this also removes the file renaming logic.

A potential drawback is that we might just try to upload some bogus files forever; we'll see if that turns out to be an actual issue.