Recover from a job killed by a deploy, and show when a cut reorders
cuts_state is set before the thread starts and cleared when it finishes, so a deploy in between left the page waiting forever on work that was no longer running, with the retry button hidden. Fifteen minutes is longer than the work can legitimately take. A cut may reorder as well as drop, which changes what it is - worth saying rather than leaving the reader to spot it in the id list.
This commit is contained in:
parent
8a3e257637
commit
efa861f227
1 changed files with 24 additions and 3 deletions
27
trailer.html
27
trailer.html
|
|
@ -332,7 +332,7 @@
|
|||
+ 'Each other model reads ONLY this script - no book - and says what it understood.">'
|
||||
+ (REVIEWS.length ? "Test it again" : "Does it make sense? Ask " + others + " readers")
|
||||
+ '</button>');
|
||||
if ((PKG.shots || []).length >= 6 && String(PKG.cuts_state || "") !== "thinking")
|
||||
if ((PKG.shots || []).length >= 6 && !busyCuts())
|
||||
out.push('<button type="button" class="btn" data-cuts="' + esc(meta.id)
|
||||
+ '" title="Several shorter versions of what is already filmed. '
|
||||
+ 'Costs nothing to propose or to watch.">'
|
||||
|
|
@ -367,6 +367,14 @@
|
|||
return out.join("");
|
||||
}
|
||||
|
||||
// A cut may move shots as well as drop them, which makes it a different
|
||||
// film rather than a shorter one. Worth saying out loud.
|
||||
function reordered(ids) {
|
||||
var a = (ids || []).map(String);
|
||||
var b = a.slice().sort();
|
||||
return a.join(" | ||||