E5: il giro non si ripete a vuoto e le copie automatiche cedono davvero
Il passaggio che segue la ripresa di un giro non rifà il lavoro di recupero (prova delle cartelle in pausa, ripresa dei lavori fermati da un errore): un lavoro che si ferma di nuovo aspetta il giro dopo invece di essere ripreso all'infinito senza dormire. Il giro misura lo spazio per il lavoro automatico che riprenderebbe, non per una pausa di Alberto, così una pausa per spazio non va e viene con un evento nuovo ogni volta. «Annulla» tiene lontane le partenze automatiche finché il lavoro è annullato; «Esporta questo account» spento ferma subito la copia automatica; «Cerca i video fermi» chiede di fermarsi a una copia automatica partita dopo di lei; un file che manca sul disco non crea più un lavoro automatico a ogni passaggio. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
93f7978d9e
commit
309f4d0402
12 files changed
+436
-32
No files matched your search
@@ -311,6 +311,20 @@ public sealed class StillVideosApiTests
|
||||
Assert.AreEqual("2 video da analizzare · 1 già analizzato · la foto si salta", plan.Str("summary"));
|
||||
Assert.AreEqual(JsonValueKind.Null, plan.GetProperty("waiting").ValueKind);
|
||||
|
||||
// An automatic copy is no reason to wait: the search makes it give way at once (answer 49); an import is.
|
||||
var gate = server.App.Services.GetRequiredService<LongWorkGate>();
|
||||
Assert.IsTrue(gate.TryEnterYielding(LongWorkKind.Export, out var automatic, out _, out _));
|
||||
using (automatic)
|
||||
{
|
||||
Assert.AreEqual(JsonValueKind.Null, (await server.SendJsonAsync(HttpMethod.Post, "/api/still-videos/plan", selection)).Body.GetProperty("waiting").ValueKind);
|
||||
}
|
||||
|
||||
Assert.IsTrue(gate.TryEnter(LongWorkKind.Import, out var import, out _));
|
||||
using (import)
|
||||
{
|
||||
Assert.AreEqual(StillVideoText.LongWork, (await server.SendJsonAsync(HttpMethod.Post, "/api/still-videos/plan", selection)).Body.Str("waiting"));
|
||||
}
|
||||
|
||||
// During an engine session it waits, and says so (answer 41); «Interrompi» ends it with nothing stored.
|
||||
session.InSession = true;
|
||||
Assert.AreEqual(StillVideoText.InSession, (await server.SendJsonAsync(HttpMethod.Post, "/api/still-videos/plan", selection)).Body.Str("waiting"));
|
||||
|
||||
Reference in new issue
Block a user