Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

14 lines (12 sloc) 0.501 kB
from celery.task import task
from models import VideoVersion
@task
def encodevideo(source, size, codec):
logger = encodevideo.get_logger()
logger.info("**********************")
print "======== in encodevideo task ========="
version, created = VideoVersion.objects.get_or_create(source = source, size = size, codec = codec)
print "== version, created", version, created
version_status = version.encode()
print "== version_status", version_status
return version_status
Jump to Line
Something went wrong with that request. Please try again.