jbilcke-hf HF staff commited on
Commit
57adb5c
·
1 Parent(s): 938161c

fix update

Browse files
src/scheduler/processTask.mts CHANGED
@@ -100,6 +100,8 @@ export const processTask = async (task: VideoTask) => {
100
 
101
  await updatePendingTask(task)
102
 
 
 
103
  } catch (err) {
104
  console.error(`failed to generate shot ${shot.id} (${err})`)
105
  // something is wrong, let's put the whole thing back into the queue
 
100
 
101
  await updatePendingTask(task)
102
 
103
+ await copyVideoFromPendingToCompleted(shot.fileName, task.fileName)
104
+
105
  } catch (err) {
106
  console.error(`failed to generate shot ${shot.id} (${err})`)
107
  // something is wrong, let's put the whole thing back into the queue
src/utils/parseShotRequest.mts CHANGED
@@ -42,7 +42,7 @@ export const parseShotRequest = async (sequence: VideoSequence, maybeShotMeta: P
42
  durationMs: getValidNumber(maybeShotMeta.durationMs, 0, 6000, 3000),
43
 
44
  // a video sequence CAN HAVE inconsistent iteration steps
45
- steps: getValidNumber(maybeShotMeta.steps || sequence.steps, 10, 50, 35),
46
 
47
  // a video sequence MUST HAVE consistent frames per second
48
  fps: getValidNumber(sequence.fps, 8, 60, 24),
 
42
  durationMs: getValidNumber(maybeShotMeta.durationMs, 0, 6000, 3000),
43
 
44
  // a video sequence CAN HAVE inconsistent iteration steps
45
+ steps: getValidNumber(maybeShotMeta.steps || sequence.steps, 10, 50, 45),
46
 
47
  // a video sequence MUST HAVE consistent frames per second
48
  fps: getValidNumber(sequence.fps, 8, 60, 24),
src/utils/parseVideoRequest.mts CHANGED
@@ -68,7 +68,7 @@ export const parseVideoRequest = async (request: VideoTaskRequest): Promise<Vide
68
 
69
  noise: request.sequence.noise === true,
70
 
71
- steps: getValidNumber(request.sequence.steps, 10, 50, 35),
72
 
73
  fps: getValidNumber(request.sequence.fps, 8, 60, 24),
74
 
 
68
 
69
  noise: request.sequence.noise === true,
70
 
71
+ steps: getValidNumber(request.sequence.steps, 10, 50, 45),
72
 
73
  fps: getValidNumber(request.sequence.fps, 8, 60, 24),
74