This commit is contained in:
2022-05-10 16:52:18 -07:00
parent 6c8ad46064
commit 0a2f97fd93
3 changed files with 73 additions and 95 deletions

View File

@ -112,7 +112,7 @@ public class TimedHostedService : IHostedService, IDisposable
{
try
{
if (!_BackgroundMethods.IsPrimaryInstance())
if (_BackgroundMethods.IsPrimaryInstance())
_BackgroundMethods.LogPathCleanUpByWeekCallback();
}
catch (Exception e) { _Log.Error(e, "Error: "); }
@ -132,7 +132,7 @@ public class TimedHostedService : IHostedService, IDisposable
{
try
{
if (!_BackgroundMethods.IsPrimaryInstance())
if (_BackgroundMethods.IsPrimaryInstance())
_BackgroundMethods.EDAOutputArchiveCallback();
}
catch (Exception e) { _Log.Error(e, "Error: "); }
@ -152,7 +152,7 @@ public class TimedHostedService : IHostedService, IDisposable
{
try
{
if (!_BackgroundMethods.IsPrimaryInstance())
if (_BackgroundMethods.IsPrimaryInstance())
_BackgroundMethods.EdaDataCollectionPlansCallback();
}
catch (Exception e) { _Log.Error(e, "Error: "); }