• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

EsupPortail / Esup-Pod / 5424233138

pending completion
5424233138

Pull #899

github

web-flow
Merge bfc949828 into b8d45a116
Pull Request #899: [WIP] Ptitloup/feature new encoding

336 of 336 new or added lines in 8 files covered. (100.0%)

9028 of 12629 relevant lines covered (71.49%)

0.71 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/pod/video_encode_transcript/importing_transcript_tasks.py
1
from celery import Celery
×
2
from .. import settings
×
3
import logging
×
4
logger = logging.getLogger(__name__)
×
5

6
ENCODING_TRANSCODING_CELERY_BROKER_URL = getattr(
×
7
    settings,
8
    "ENCODING_TRANSCODING_CELERY_BROKER_URL",
9
    ""
10
)
11

12
importing_transcript_app = Celery(
×
13
    "importing_transcript_tasks",
14
    broker=ENCODING_TRANSCODING_CELERY_BROKER_URL
15
)
16
importing_transcript_app.conf.task_routes = {
×
17
    "pod.video_encode_transcript.importing_transcript_tasks.*": {
18
        "queue": "importing_transcript"
19
    }
20
}
21

22

23
# celery -A pod.video_encode_transcript.importing_tasks worker -l INFO -Q importing
24
@importing_transcript_app.task
×
25
def start_importing_transcript_task(video_id, msg, webvtt):
×
26
    """Start the encoding of the video."""
27
    print("Start the importing transcript of the video ID : %s" % video_id)
×
28
    from pod.video.models import Video
×
29
    from .transcript import save_vtt_and_notify
×
30
    video_to_encode = Video.objects.get(id=video_id)
×
31
    save_vtt_and_notify(video_to_encode, msg, webvtt)
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc