File upload issues with 'gevent' worker class and more than two workers
Upgrading to gracedb-2.4.1 today failed on gracedb-playground and gracedb due to issues with the asynchronous gevent
worker class. It seemed to fail on attempts to issue alerts for file uploads. This problem was not detected in development or testing so it seems to only happen when more than two workers are present. For now, we will stick with the sync
worker class.
Some StackOverflow posts indicated we may need to turn off the sendfile
setting, although it's not clear why.
See attached error email for more details.Django__ERROR__EXTERNAL_IP___Internal_Server_Error___api_events_G15070_log.eml