Skip to content

Transcoding Fails on Large Files #722

Answered by mgogoulos
jsimons256 asked this question in Q&A
Discussion options

You must be logged in to vote

The part on the above log

Soft time limit (7200s) exceeded for encode_media[

suggests that the specific job (or celery task more specifically) has a limit of 2hours and then fails the job, this is set as a check mechanism that a process wouldn't run for a long time. You may change this limit and restart celery_long, in this case it will take the time to complete the video encoding

files/tasks.py , under EncodingTask

@task(
    name="encode_media",
    base=EncodingTask,
    bind=True,
    queue="long_tasks",
    soft_time_limit=settings.CELERY_SOFT_TIME_LIMIT,
)
def encode_media(

set soft_time_limit to something bigger than settings.CELERY_SOFT_TIME_LIMIT , which is defined on cms/setti…

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@bouabid-ma
Comment options

@jameskitt616
Comment options

Answer selected by jsimons256
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants
Converted from issue

This discussion was converted from issue #689 on February 17, 2023 20:12.