allow more time for download tasks in cachedfileprovider

This commit is contained in:
Stanley Dimant
2024-05-04 15:36:09 +02:00
committed by Loporrit
parent aa78432db3
commit 56a257261b

View File

@@ -187,7 +187,7 @@ public sealed class CachedFileProvider : IDisposable
try try
{ {
using CancellationTokenSource cts = new(); using CancellationTokenSource cts = new();
cts.CancelAfter(TimeSpan.FromSeconds(15)); cts.CancelAfter(TimeSpan.FromSeconds(120));
_metrics.IncGauge(MetricsAPI.GaugeFilesTasksWaitingForDownloadFromCache); _metrics.IncGauge(MetricsAPI.GaugeFilesTasksWaitingForDownloadFromCache);
await downloadTask.WaitAsync(cts.Token).ConfigureAwait(false); await downloadTask.WaitAsync(cts.Token).ConfigureAwait(false);
} }