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

EsupPortail / Esup-Pod / 7913033822

15 Feb 2024 08:25AM UTC coverage: 70.222% (+0.01%) from 70.212%
7913033822

Pull #1048

github

web-flow
Merge 2a34bd0a8 into 55004fdf1
Pull Request #1048: [DONE] Fix dressing Watermark path

34 of 36 new or added lines in 7 files covered. (94.44%)

4 existing lines in 4 files now uncovered.

9737 of 13866 relevant lines covered (70.22%)

0.7 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
"""Esup-Pod import video tasks."""
UNCOV
2
from celery import Celery
×
3

4
try:
×
5
    from ..custom import settings_local
×
6
except ImportError:
×
7
    from .. import settings as settings_local
×
8
import os
×
9
import logging
×
10

11
logger = logging.getLogger(__name__)
×
12

13
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "pod.settings")
×
14

15
ENCODING_TRANSCODING_CELERY_BROKER_URL = getattr(
×
16
    settings_local, "ENCODING_TRANSCODING_CELERY_BROKER_URL", ""
17
)
18

19
importing_app = Celery("importing_tasks", broker=ENCODING_TRANSCODING_CELERY_BROKER_URL)
×
20
importing_app.conf.task_routes = {
×
21
    "pod.video_encode_transcript.importing_tasks.*": {"queue": "importing"}
22
}
23

24

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

33
    encoding_video = Encoding_video_model(video_id, video_path, cut_start, cut_end)
×
34
    encoding_video.start = start
×
35
    encoding_video.stop = stop
×
36

37
    final_video = store_encoding_info(video_id, encoding_video)
×
38
    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