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

EsupPortail / Esup-Pod / 6377635546

02 Oct 2023 08:21AM UTC coverage: 70.396% (-1.6%) from 71.99%
6377635546

push

github

web-flow
Merge pull request #900 from EsupPortail/develop

[DONE] #3.4.0

1509 of 1509 new or added lines in 58 files covered. (100.0%)

9288 of 13194 relevant lines covered (70.4%)

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
from celery import Celery
×
2

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

10
logger = logging.getLogger(__name__)
×
11

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

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

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

23

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

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

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