Permalink
Browse files

put these in the images queue with CELERY_ROUTES

  • Loading branch information...
1 parent dabb667 commit 0fc5ef09b24fe99911ce9242036c715bdd4bb81a Jeff Balogh committed Jan 14, 2011
Showing with 4 additions and 2 deletions.
  1. +2 −2 apps/devhub/tasks.py
  2. +2 −0 settings.py
View
@@ -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
@@ -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'},
}

0 comments on commit 0fc5ef0

Please sign in to comment.