mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-30 08:33:19 +01:00
Prevent synchronization issues from failing repo jobs
This commit is contained in:
@@ -381,6 +381,10 @@ namespace Tgstation.Server.Host.Components.Repository
|
||||
{
|
||||
cancellationToken.ThrowIfCancellationRequested();
|
||||
}
|
||||
catch(LibGit2SharpException e)
|
||||
{
|
||||
logger.LogWarning("Unable to push to temporary branch! Exception: {0}", e);
|
||||
}
|
||||
}
|
||||
finally
|
||||
{
|
||||
@@ -581,6 +585,11 @@ namespace Tgstation.Server.Host.Components.Repository
|
||||
cancellationToken.ThrowIfCancellationRequested();
|
||||
throw new InvalidOperationException("Caught UserCancelledException without cancellationToken triggering", e);
|
||||
}
|
||||
catch (LibGit2SharpException e)
|
||||
{
|
||||
logger.LogWarning("Unable to make synchronization push! Exception: {0}", e);
|
||||
return false;
|
||||
}
|
||||
}, cancellationToken, TaskCreationOptions.LongRunning, TaskScheduler.Current).ConfigureAwait(false);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user