Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion Robust.Cdn/Jobs/IngestNewCdnContentJob.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public async Task Execute(IJobExecutionContext context)
var connection = cdnDatabase.Connection;
var transaction = connection.BeginTransaction();

List<string> newVersions;
List<string> newVersions = new();
try
{
newVersions = FindNewVersions(fork, connection);
Expand All @@ -61,6 +61,10 @@ public async Task Execute(IJobExecutionContext context)

transaction.Commit();
}
catch (Exception ex)
{
logger.LogError(ex, "Failed to commit database");
}
finally
{
transaction.Dispose();
Expand Down
1 change: 1 addition & 0 deletions Robust.Cdn/Jobs/MakeNewManifestVersionsAvailableJob.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

namespace Robust.Cdn.Jobs;

[DisallowConcurrentExecution]
public sealed class MakeNewManifestVersionsAvailableJob(
ManifestDatabase database,
ISchedulerFactory factory,
Expand Down