Compilation fixes

This commit is contained in:
2026-05-14 22:15:26 +02:00
parent f62cf057d2
commit e003c186b8
5 changed files with 6 additions and 9 deletions
@@ -7,7 +7,6 @@ using Musify.Application.Contracts.Infrastructure;
using Musify.Application.Events;
using Musify.Application.PlayLists.Commands;
using Musify.Application.PlayLists.Responses;
using Musify.Application.UploadIntents;
using Musify.Application.Extensions;
using Musify.Application.Services;
using Musify.Domain.Entities;
@@ -7,7 +7,6 @@ using Musify.Application.Contracts.Infrastructure;
using Musify.Application.Events;
using Musify.Application.PlayLists.Commands;
using Musify.Application.PlayLists.Responses;
using Musify.Application.UploadIntents;
using Musify.Application.Extensions;
using Musify.Application.Services;
using Musify.Domain.Entities;
@@ -7,7 +7,6 @@ using Musify.Application.Contracts.Infrastructure;
using Musify.Application.Events;
using Musify.Application.Tracks.Commands;
using Musify.Application.Tracks.Responses;
using Musify.Application.UploadIntents;
using Musify.Application.Extensions;
using Musify.Application.Services;
using Musify.Domain.Entities;
@@ -6,16 +6,16 @@ using Musify.Application.Configuration;
namespace Musify.Infrastructure.Jobs
{
public class TempUploadsCleanupJob(
public class TemporalUploadsCleanupJob(
IServiceScopeFactory scopeFactory,
ILogger<TempUploadsCleanupJob> logger,
ILogger<TemporalUploadsCleanupJob> logger,
ApplicationStorageConfiguration storageConfiguration,
UploadIntentConfiguration uploadIntentConfiguration)
: BackgroundService
{
protected override async Task ExecuteAsync(CancellationToken stoppingToken)
{
logger.LogInformation("TempUploadsCleanupJob started (interval: {Interval}s, prefix: {Prefix})",
logger.LogInformation("TemporalUploadsCleanupJob started (interval: {Interval}s, prefix: {Prefix})",
uploadIntentConfiguration.TempCleanupJobIntervalSeconds,
uploadIntentConfiguration.TempRootPrefix);
@@ -27,7 +27,7 @@ namespace Musify.Infrastructure.Jobs
}
catch (Exception exception) when (exception is not OperationCanceledException)
{
logger.LogError(exception, "Error in TempUploadsCleanupJob");
logger.LogError(exception, "Error in TemporalUploadsCleanupJob");
}
await Task.Delay(TimeSpan.FromSeconds(uploadIntentConfiguration.TempCleanupJobIntervalSeconds), stoppingToken);
@@ -64,7 +64,7 @@ namespace Musify.Infrastructure.Jobs
}
if (deleted > 0 || errors > 0)
logger.LogInformation("TempUploadsCleanupJob: deleted {Deleted} orphaned objects, {Errors} errors", deleted, errors);
logger.LogInformation("TemporalUploadsCleanupJob: deleted {Deleted} orphaned objects, {Errors} errors", deleted, errors);
}
}
}
@@ -66,7 +66,7 @@ namespace Musify.Infrastructure.Services
serviceDescriptors.AddUploadIntentConfiguration(configuration);
serviceDescriptors.AddHostedService<UploadIntentExpirationJob>();
serviceDescriptors.AddHostedService<TempUploadsCleanupJob>();
serviceDescriptors.AddHostedService<TemporalUploadsCleanupJob>();
return serviceDescriptors;
}