src/hdalab/tasks.py
changeset 508 96ddbedf93cb
parent 493 09aa28e25840
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/hdalab/tasks.py	Mon Mar 09 11:05:44 2015 +0100
@@ -0,0 +1,20 @@
+# -*- coding: utf-8 -*-
+'''
+Created on Mar 7, 2015
+
+@author: ymh
+'''
+from __future__ import absolute_import
+
+from celery import shared_task
+
+from hdalab.models.renkan import HdalabRenkan
+from hdalab.services import renkan_capture_preview
+
+
+@shared_task
+def capture_preview(rk_id):
+    
+    hdalab_renkan = HdalabRenkan.objects.filter(renkan__rk_id=rk_id).select_related().get()
+    
+    renkan_capture_preview(hdalab_renkan)
\ No newline at end of file