Allow native guide import to complete without plugin-imposed short timeout

This commit is contained in:
2026-10-23 19:35:16 +02:00
parent 2e7662f018
commit eb95d10628
6 changed files with 14 additions and 7 deletions
+3 -1
View File
@@ -98,7 +98,9 @@ public sealed class ChannelSyncTask : IScheduledTask
}
progress.Report(10);
var refreshStarted=DateTime.UtcNow;
await tasks.Execute(worker,new TaskOptions{MaxRuntimeTicks=TimeSpan.FromMinutes(5).Ticks}).WaitAsync(token).ConfigureAwait(false);
// A first seven-day import may take much longer than a channel check.
// Keep the native job's ordinary execution/cancellation policy.
await tasks.Execute(worker,new TaskOptions()).WaitAsync(token).ConfigureAwait(false);
token.ThrowIfCancellationRequested();
if(worker.LastExecutionResult?.Status!=TaskCompletionStatus.Completed||worker.LastExecutionResult.StartTimeUtc<refreshStarted.AddSeconds(-1))
throw new InvalidOperationException("Native guide refresh did not complete successfully.");
@@ -2,8 +2,8 @@
<PropertyGroup>
<TargetFrameworks>net10.0</TargetFrameworks>
<AssemblyVersion>7.0.10.0</AssemblyVersion>
<FileVersion>7.0.10.0</FileVersion>
<AssemblyVersion>7.0.11.0</AssemblyVersion>
<FileVersion>7.0.11.0</FileVersion>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|net6.0|AnyCPU'">