Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

put these in the images queue with CELERY_ROUTES

  • Loading branch information...
commit 0fc5ef09b24fe99911ce9242036c715bdd4bb81a 1 parent dabb667
Jeff Balogh authored
Showing with 4 additions and 2 deletions.
  1. +2 −2 apps/devhub/tasks.py
  2. +2 −0  settings.py
View
4 apps/devhub/tasks.py
@@ -70,7 +70,7 @@ def _validator(file_path):
spidermonkey=settings.SPIDERMONKEY)
-@task(queue='images')
+@task
def resize_icon(src, dst, size, **kw):
"""Resizes addon icons."""
log.info('[1@None] Resizing icon: %s' % dst)
@@ -88,7 +88,7 @@ def resize_icon(src, dst, size, **kw):
log.error("Error saving addon icon: %s" % e)
-@task(queue='images')
+@task
def resize_preview(src, thumb_dst, full_dst, **kw):
"""Resizes preview images."""
log.info('[1@None] Resizing preview: %s' % thumb_dst)
View
2  settings.py
@@ -564,6 +564,8 @@ def JINJA_CONFIG():
'bandwagon.tasks.resize_icon': {'queue': 'images'},
'users.tasks.resize_photo': {'queue': 'images'},
'users.tasks.delete_photo': {'queue': 'images'},
+ 'devhub.tasks.resize_icon': {'queue': 'images'},
+ 'devhub.tasks.resize_preview': {'queue': 'images'},
}
Please sign in to comment.
Something went wrong with that request. Please try again.