layerindex-web/layerindex
Paul Eggleton 170259df39 Add a workaround for ConnectionResetErrors in task_log_view()
When running a task (e.g. importing other distribution data), the web
frontend polls to get task output every second. In the view handling
this request we check to see if the underlying Celery task is finished
by getting the AsyncResult and then calling result.ready().
Unfortunately that latter call seems to be failing some of the time in
the development Docker setup that I am using, throwing a
ConnectionResetError. Because the polling is regular it doesn't really
matter if this fails as there'll be another chance on the next poll, so
just allow the call to fail silently. (It pains me to put in workarounds
like this but at the moment I can't determine the real cause of the
issue, and this stops the stream of ultimately useless error report
emails that I'm getting as an admin of the development instance).

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2019-07-17 11:31:04 +12:00
..
migrations Record configure options 2019-07-17 11:31:04 +12:00
static Add LICENSE texts for distributed components 2019-07-17 11:31:04 +12:00
templatetags Show update task output more smoothly 2018-09-20 16:04:49 +12:00
tools More shell quoting 2019-07-17 11:31:04 +12:00
__init__.py Initial commit of layerindex-web 2013-02-13 12:09:57 +00:00
admin.py admin: allow editing ClassicRecipe fields 2019-07-17 11:31:04 +12:00
auth_forms.py Add user security questions 2019-07-17 11:30:56 +12:00
auth_views.py Disable caching on auth views 2019-07-17 11:31:01 +12:00
bulkchange.py Use try...finally or with to ensure files get closed 2019-02-14 10:05:53 +13:00
context_processors.py Add ability to hide branches 2019-07-17 11:30:56 +12:00
forms.py Add ability to disposition comparison patches 2019-07-17 11:31:04 +12:00
layerconfparse.py layerconfparse.py: remove unused layerbranch from parse_layer() 2017-07-21 08:14:57 +02:00
models.py Record configure options 2019-07-17 11:31:04 +12:00
querysethelper.py Replace usage of model._meta.get_all_field_names() 2018-04-24 10:15:47 +12:00
recipedesc.py layerindex: Update tinfoil to call shutdown method 2017-01-11 21:56:35 +13:00
recipeparse.py Split out recipe dependency handling to its own function 2019-07-17 11:30:56 +12:00
restperm.py expose REST API for layerindex 2014-09-24 11:32:34 +01:00
restviews.py restviews: add additional layer view with extra nested fields 2018-02-07 11:27:48 +13:00
securityquestions.py Add user security questions 2019-07-17 11:30:56 +12:00
tasks.py More shell quoting 2019-07-17 11:31:04 +12:00
update_layer.py Record configure options 2019-07-17 11:31:04 +12:00
update.py Use shell=False where possible with utils.runcmd() 2019-07-17 11:31:01 +12:00
urls_branch.py Add ability to trigger comparison updates manually from UI 2018-08-13 16:04:14 +02:00
urls.py layerindex/urls.py: improve formatting 2019-07-17 11:30:56 +12:00
utils.py Try to make running background commands more responsive 2019-07-17 11:31:04 +12:00
views.py Add a workaround for ConnectionResetErrors in task_log_view() 2019-07-17 11:31:04 +12:00