aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/db/models_v0.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/db/models_v0.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/db/models_v0.py')
-rw-r--r--mediagoblin/db/models_v0.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mediagoblin/db/models_v0.py b/mediagoblin/db/models_v0.py
index bdedec2e..5e463d45 100644
--- a/mediagoblin/db/models_v0.py
+++ b/mediagoblin/db/models_v0.py
@@ -109,7 +109,7 @@ class MediaEntry(Base_v0):
queued_media_file = Column(PathTupleWithSlashes)
- queued_task_id = Column(Unicode)
+ queued_task_id = Column(Unicode, default=None)
__table_args__ = (
UniqueConstraint('uploader', 'slug'),