|
|
@@ -56,7 +56,7 @@ if (cluster.isMaster) {
|
|
|
if (stale.length > 0) {
|
|
|
await masterPrisma.asset.updateMany({
|
|
|
where: { id: { in: stale.map(s => s.id) } },
|
|
|
- data: { transcodeStatus: 'PENDING', transcodeProgress: 0 },
|
|
|
+ data: { transcodeStatus: 'PENDING', transcodeProgress: 0, transcodePaused: false },
|
|
|
});
|
|
|
console.log(`[master] Reset ${stale.length} stale job(s) to PENDING`);
|
|
|
}
|
|
|
@@ -436,7 +436,7 @@ async function resetStuckJobs() {
|
|
|
if (stuck.length > 0) {
|
|
|
await prisma.asset.updateMany({
|
|
|
where: { id: { in: stuck.map(s => s.id) } },
|
|
|
- data: { transcodeStatus: 'PENDING', transcodeProgress: 0 },
|
|
|
+ data: { transcodeStatus: 'PENDING', transcodeProgress: 0, transcodePaused: false },
|
|
|
});
|
|
|
// Put reset jobs into grace period so this worker doesn't immediately re-claim them
|
|
|
for (const job of stuck) {
|