[Traceback] Task amo.tasks.flush_front_end_cache_urls with id c9203197-f7d4-4b5f-aa15-1b0ff6349e88 raised exception: 'UnboundLocalError("local variable \'pattern\' referenced before assignment",)'

RESOLVED FIXED in 6.4.9

Status

addons.mozilla.org Graveyard
Admin/Editor Tools
RESOLVED FIXED
6 years ago
2 years ago

People

(Reporter: cvan, Assigned: clouserw)

Tracking

unspecified
6.4.9

Details

(Reporter)

Description

6 years ago
Celery traceback in production:

Task amo.tasks.flush_front_end_cache_urls with id c9203197-f7d4-4b5f-aa15-1b0ff6349e88 raised exception:
'UnboundLocalError("local variable \'pattern\' referenced before assignment",)'


Task was called with args: (['/blocklist/*'],) kwargs: {}.

The contents of the full traceback was:

Traceback (most recent call last):
 File "/data/www/addons.mozilla.org/zamboni/vendor/lib/python/celery/execute/trace.py", line 34, in trace
   return cls(states.SUCCESS, retval=fun(*args, **kwargs))
 File "/data/www/addons.mozilla.org/zamboni/vendor/lib/python/celery/task/base.py", line 241, in __call__
   return self.run(*args, **kwargs)
 File "/data/www/addons.mozilla.org/zamboni/vendor/lib/python/celery/app/__init__.py", line 141, in run
   return fun(*args, **kwargs)
 File "/data/www/addons.mozilla.org/zamboni/vendor/src/nuggets/celeryutils.py", line 35, in wrapped
   return fun(*args, **kw)
 File "/data/www/addons.mozilla.org/zamboni/apps/amo/tasks.py", line 48, in flush_front_end_cache_urls
   flush_urls(urls)
 File "/data/www/addons.mozilla.org/zamboni/vendor/src/hera/hera/contrib/django_utils.py", line 67, in flush_urls
   log.debug("Flushed URLs matching: %s" % (pattern))
UnboundLocalError: local variable 'pattern' referenced before assignment
(Assignee)

Comment 1

6 years ago
Andy fixed this in https://github.com/clouserw/hera/commit/1ea66d00fb09522abf6e076e78f8f17665a6c74a .  We just need to upgrade Hera.  I can do it.
Assignee: nobody → clouserw
Target Milestone: 6.4.8 → 6.4.9
(Assignee)

Comment 2

6 years ago
https://github.com/mozilla/zamboni-lib/commit/4dc64c96b72d2dd4ed6cd37edd8d8f5df2de2773
Status: NEW → RESOLVED
Last Resolved: 6 years ago
Resolution: --- → FIXED
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.