diff --git a/src/Tgstation.Server.Host/Components/Instance.cs b/src/Tgstation.Server.Host/Components/Instance.cs index 6259050951..8a10a76828 100644 --- a/src/Tgstation.Server.Host/Components/Instance.cs +++ b/src/Tgstation.Server.Host/Components/Instance.cs @@ -152,6 +152,16 @@ namespace Tgstation.Server.Host.Components } } + /// + /// The for updating the repository. + /// + /// The for the . + /// The for the . + /// The being run. + /// The progress reporter action for the . + /// The for the operation. + /// A representing the running operation. +#pragma warning disable CA1502 // Cyclomatic complexity Task RepositoryAutoUpdateJob( IInstanceCore core, IDatabaseContextFactory databaseContextFactory, @@ -350,6 +360,7 @@ namespace Tgstation.Server.Host.Components progressReporter(5 * ProgressStep); }); +#pragma warning restore CA1502 // Cyclomatic complexity /// /// Pull the repository and compile for every set of given diff --git a/src/Tgstation.Server.Host/Jobs/IJobManager.cs b/src/Tgstation.Server.Host/Jobs/IJobManager.cs index 567d622d40..ba72d618d0 100644 --- a/src/Tgstation.Server.Host/Jobs/IJobManager.cs +++ b/src/Tgstation.Server.Host/Jobs/IJobManager.cs @@ -34,9 +34,7 @@ namespace Tgstation.Server.Host.Jobs /// A that will cancel the /// The for the operation /// A representing the -#pragma warning disable CA1068 // CancellationToken parameters must come last https://github.com/dotnet/roslyn-analyzers/issues/1816 Task WaitForJobCompletion(Job job, User canceller, CancellationToken jobCancellationToken, CancellationToken cancellationToken); -#pragma warning restore CA1068 // CancellationToken parameters must come last /// /// Cancels a give