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

EsupPortail / Esup-Pod / 5462629459

pending completion
5462629459

Pull #899

github

web-flow
Merge e759dacb6 into c94f0e331
Pull Request #899: [DONE] Ptitloup/feature new encoding

400 of 400 new or added lines in 14 files covered. (100.0%)

8968 of 12675 relevant lines covered (70.75%)

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
try:
×
3
    from ..custom import settings_local
×
4
except ImportError:
×
5
    from .. import settings as settings_local
×
6
import logging
×
7
logger = logging.getLogger(__name__)
×
8

9
ENCODING_TRANSCODING_CELERY_BROKER_URL = getattr(
×
10
    settings_local,
11
    "ENCODING_TRANSCODING_CELERY_BROKER_URL",
12
    ""
13
)
14

15
importing_app = Celery(
×
16
    "importing_tasks",
17
    broker=ENCODING_TRANSCODING_CELERY_BROKER_URL
18
)
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
    encoding_video = Encoding_video_model(video_id, video_path, cut_start, cut_end)
×
32
    encoding_video.start = start
×
33
    encoding_video.stop = stop
×
34

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