Skip to content

Learningtribes/edx-video-worker

 
 

Repository files navigation

##

edx-video-worker

Encode worker node for edx-video-pipeline

This is a rabbitMQ brokered, celery cluster running off of a specific formulaic CRF transcode, generated by the central (running django) node Commands are then passed back to the Django node and videos are routed to the appropriate delivery method. This worker

https://travis-ci.org/edx/edx-video-worker.svg?branch=master

Installation

python setup.py install

Usage

from command line:

video_worker

Python instantiate class:

VW = VideoWorker(
    veda_id = '${ID_STRING}'
    encode_profile = '${ENCODE_ID}'
    jobid='${JOB_ID}'
    )

Test (nose)

VW.test()

Celery Async

import celeryapp
veda_id='${ID_STRING}'
encode_profile='${ENCODE_ID}'
jobid='${JOB_ID}'

celeryapp.worker_task_fire.apply_async(
    (veda_id, encode_profile, jobid),
    queue='test_node'
    )

@yro / 2016

About

edx-video-pipeline Encode Worker

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 98.9%
  • Other 1.1%