aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/submit/views.py
diff options
context:
space:
mode:
authorSebastian Spaeth <Sebastian@SSpaeth.de>2012-12-20 13:42:37 +0100
committerRodney Ewing <ewing.rj@gmail.com>2013-08-19 14:42:13 -0700
commitbf2dafd1a04ef8050ebf08bb512862a1592998c0 (patch)
tree1732dd80d13a780f0cafffefffd2da3f1854548e /mediagoblin/submit/views.py
parentbd0b5daa44691c8cf72ef2ff5a8cdc3b01490722 (diff)
downloadmediagoblin-bf2dafd1a04ef8050ebf08bb512862a1592998c0.tar.lz
mediagoblin-bf2dafd1a04ef8050ebf08bb512862a1592998c0.tar.xz
mediagoblin-bf2dafd1a04ef8050ebf08bb512862a1592998c0.zip
Tweak Celery Task
- Make sure Exceptions are pickleable (not sure if this was not the case but this is the pattern as documented in the celery docs. - Don't create a task_id in the GMG code, but save the one implicitely created by celery. - Don't create a task-id directory per upload. Just store queued uploads in a single directory (this is the most controversial change and might need discussion!!!) Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
Diffstat (limited to 'mediagoblin/submit/views.py')
-rw-r--r--mediagoblin/submit/views.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/mediagoblin/submit/views.py b/mediagoblin/submit/views.py
index 3f9d5b2d..6bb95ecb 100644
--- a/mediagoblin/submit/views.py
+++ b/mediagoblin/submit/views.py
@@ -89,7 +89,7 @@ def submit_start(request):
# Save now so we have this data before kicking off processing
entry.save()
- # Pass off to processing
+ # Pass off to async processing
#
# (... don't change entry after this point to avoid race
# conditions with changes to the document via processing code)
@@ -97,6 +97,7 @@ def submit_start(request):
'mediagoblin.user_pages.atom_feed',
qualified=True, user=request.user.username)
run_process_media(entry, feed_url)
+
add_message(request, SUCCESS, _('Woohoo! Submitted!'))
add_comment_subscription(request.user, entry)