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
@@ -679,7 +679,11 @@ public sealed class StillVideoService : IDisposable
|
||||
stop.ThrowIfCancellationRequested();
|
||||
}
|
||||
|
||||
/// <summary>Why the job may not analyse now, but for the viewer: an engine session or a long work.</summary>
|
||||
/// <summary>
|
||||
/// Why the job may not analyse now, but for the viewer: an engine session or a long work. An automatic copy that took
|
||||
/// the gate after the search started is asked to stop at every look (§16 answer 49: the search comes first), not
|
||||
/// only at the start, so the search never waits behind a whole automatic job.
|
||||
/// </summary>
|
||||
private string? BackgroundReason()
|
||||
{
|
||||
if (_env.Session.InSession)
|
||||
@@ -687,7 +691,17 @@ public sealed class StillVideoService : IDisposable
|
||||
return StillVideoText.InSession;
|
||||
}
|
||||
|
||||
return _env.Gate?.Busy is not null ? StillVideoText.LongWork : null;
|
||||
if (_env.Gate is not { } gate)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
if (gate.HeldByYielding)
|
||||
{
|
||||
gate.CancelYielding();
|
||||
}
|
||||
|
||||
return gate.Busy is not null ? StillVideoText.LongWork : null;
|
||||
}
|
||||
|
||||
/// <summary>Counts <paramref name="item"/> (with its outcome, or as left out) and takes it off the front of the queue.</summary>
|
||||
|
||||
Reference in new issue
Block a user