Skip to content
Projects
Groups
Snippets
Help
Sign in / Register
Toggle navigation
Minds Backend - Engine
Project overview
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
285
Merge Requests
38
CI / CD
Security & Compliance
Packages
Wiki
Snippets
Members
Collapse sidebar
Close sidebar
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Minds
Minds Backend - Engine
Commits
dfd245ab
Commit
dfd245ab
authored
41 minutes ago
by
Mark Harding
Browse files
Options
Download
(fix): do not return created in status check
parent
e39b692a
epic/transcoder-improvements
1 merge request
!414
WIP: New transcoder
Pipeline
#101997607
passed with stages
in 7 minutes and 24 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
Core/Media/Video/Transcoder/TranscodeStates.php
View file @
dfd245ab
...
...
@@ -40,6 +40,7 @@ class TranscodeStates
'guid'
=>
$video
->
getGuid
(),
]);
$created
=
0
;
$failures
=
0
;
$completed
=
0
;
...
...
@@ -58,7 +59,7 @@ class TranscodeStates
break
;
case
TranscodeStates
::
CREATED
:
// If not started to transcode then we are in a created state
return
TranscodeStates
::
CREATED
;
++
$created
;
break
;
case
TranscodeStates
::
FAILED
:
++
$failures
;
...
...
@@ -66,11 +67,14 @@ class TranscodeStates
break
;
case
TranscodeStates
::
COMPLETED
:
++
$completed
;
// We should allow failures for some transcodes
break
;
}
}
if
(
$created
>
(
$completed
+
$failures
))
{
return
TranscodeStates
::
CREATED
;
}
// If we have more completions then failures the declare completed
if
(
$failures
<
$completed
)
{
return
TranscodeStates
::
COMPLETED
;
...
...
This diff is collapsed.
Please
register
or
sign in
to comment