• 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_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_app = Celery(
×
13
    "importing_tasks",
14
    broker=ENCODING_TRANSCODING_CELERY_BROKER_URL
15
)
16
importing_app.conf.task_routes = {
×
17
    "pod.video_encode_transcript.importing_tasks.*": {"queue": "importing"}
18
}
19

20

21
# celery -A pod.video_encode_transcript.importing_tasks worker -l INFO -Q importing
22
@importing_app.task
×
23
def start_importing_task(start, video_id, video_path, cut_start, cut_end, stop):
×
24
    """Start the encoding of the video."""
25
    print("Start the importing of the video ID : %s" % video_id)
×
26
    from .Encoding_video_model import Encoding_video_model
×
27
    from .encode import store_encoding_info, end_of_encoding
×
28
    encoding_video = Encoding_video_model(video_id, video_path, cut_start, cut_end)
×
29
    encoding_video.start = start
×
30
    encoding_video.stop = stop
×
31

32
    final_video = store_encoding_info(video_id, encoding_video)
×
33
    end_of_encoding(final_video)
×
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