private static final String CHILD_TEMPLATE_FILTER = "sys-recreate-lowres";\r
private static final String[] CHILD_TEMPLATES = { "sys-recreate-lowres-71.xml", "sys-recreate-lowres-72.xml", "sys-recreate-lowres-73.xml",\r
"sys-recreate-lowres-74.xml" };\r
+ private static final int MAX_ALLOWED_TRANSCODE = 0;\r
\r
@StepEntry\r
public Object[] execute(String localHiresPath) throws Exception {\r
\r
private List<Media> getUntranscodedMedias(DBCollection collection) {\r
List<Media> result = new ArrayList<>();\r
- String query = "SELECT mediaid FROM VW_MISSING_PROXY_IDS";\r
+ String query = String.format("SELECT mediaid FROM VW_MISSING_PROXY_IDS FETCH FIRST %d ROWS ONLY", CHILD_TEMPLATES.length);\r
getManager().executeQuery(query, rs -> {\r
try {\r
long mediaId = rs.getLong(1);\r
return true;\r
\r
result.add(media);\r
- int currentTranscodes = getExecutingTranscodeCount();\r
- if (currentTranscodes + result.size() == MAX_ALLOWED_TRANSCODE)\r
+ int currentTranscodes = getExecutingTranscodeJobs().size();\r
+ if (currentTranscodes + result.size() == CHILD_TEMPLATES.length)\r
return false;\r
\r
} catch (Exception e) {\r
<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
-\r
<launchConfiguration type="org.eclipse.m2e.Maven2LaunchConfigurationType">\r
- <booleanAttribute key="M2_DEBUG_OUTPUT" value="false"/>\r
- <stringAttribute key="M2_GOALS" value="clean install"/>\r
- <booleanAttribute key="M2_NON_RECURSIVE" value="false"/>\r
- <booleanAttribute key="M2_OFFLINE" value="false"/>\r
- <stringAttribute key="M2_PROFILES" value=""/>\r
- <listAttribute key="M2_PROPERTIES"/>\r
- <stringAttribute key="M2_RUNTIME" value="EMBEDDED"/>\r
- <booleanAttribute key="M2_SKIP_TESTS" value="true"/>\r
- <intAttribute key="M2_THREADS" value="1"/>\r
- <booleanAttribute key="M2_UPDATE_SNAPSHOTS" value="false"/>\r
- <stringAttribute key="M2_USER_SETTINGS" value=""/>\r
- <booleanAttribute key="M2_WORKSPACE_RESOLUTION" value="false"/>\r
- <listAttribute key="org.eclipse.debug.ui.favoriteGroups">\r
- <listEntry value="org.eclipse.debug.ui.launchGroup.run"/>\r
- </listAttribute>\r
- <stringAttribute key="org.eclipse.jdt.launching.WORKING_DIRECTORY" value="${workspace_loc:/user.mediacube.gui}"/>\r
+ <intAttribute key="M2_COLORS" value="0"/>\r
+ <booleanAttribute key="M2_DEBUG_OUTPUT" value="false"/>\r
+ <stringAttribute key="M2_GOALS" value="clean install"/>\r
+ <booleanAttribute key="M2_NON_RECURSIVE" value="false"/>\r
+ <booleanAttribute key="M2_OFFLINE" value="false"/>\r
+ <stringAttribute key="M2_PROFILES" value=""/>\r
+ <listAttribute key="M2_PROPERTIES"/>\r
+ <stringAttribute key="M2_RUNTIME" value="EMBEDDED"/>\r
+ <booleanAttribute key="M2_SKIP_TESTS" value="true"/>\r
+ <intAttribute key="M2_THREADS" value="1"/>\r
+ <booleanAttribute key="M2_UPDATE_SNAPSHOTS" value="false"/>\r
+ <stringAttribute key="M2_USER_SETTINGS" value=""/>\r
+ <booleanAttribute key="M2_WORKSPACE_RESOLUTION" value="false"/>\r
+ <booleanAttribute key="org.eclipse.debug.core.ATTR_FORCE_SYSTEM_CONSOLE_ENCODING" value="false"/>\r
+ <listAttribute key="org.eclipse.debug.ui.favoriteGroups">\r
+ <listEntry value="org.eclipse.debug.ui.launchGroup.run"/>\r
+ </listAttribute>\r
+ <booleanAttribute key="org.eclipse.jdt.launching.ATTR_ATTR_USE_ARGFILE" value="false"/>\r
+ <booleanAttribute key="org.eclipse.jdt.launching.ATTR_SHOW_CODEDETAILS_IN_EXCEPTION_MESSAGES" value="true"/>\r
+ <booleanAttribute key="org.eclipse.jdt.launching.ATTR_USE_CLASSPATH_ONLY_JAR" value="false"/>\r
+ <stringAttribute key="org.eclipse.jdt.launching.WORKING_DIRECTORY" value="${workspace_loc:/user.mediacube.gui}"/>\r
</launchConfiguration>\r