This commit is contained in:
2021-08-05 23:39:45 +00:00
parent 49bd0d2d87
commit 1797263d06
5 changed files with 42 additions and 40 deletions

View File

@@ -186,19 +186,12 @@ namespace AyaNova.Biz
//system lock (no license) is a complete deal breaker for continuation beyond here
if (serverState.IsSystemLocked) return;
//Moved the following user count checker to within JOB SWEEPER so that it only checks on every half hour so it's less obvious in logs with full trace on and
//also so someone fucking with the system won't get locked out right away.
//"SHENANIGAN" CHECK, note, must be here after systemlock because it relies on there being a license
// if (await UserBiz.ActiveCountAsync() > AyaNova.Core.License.ActiveKey.ActiveNumber)
// {
// var msg = $"E1020 - Active count exceeded capacity";
// ServiceProviderProvider.ServerState.SetSystemLock(msg);
// log.LogCritical(msg);
// return;
// }
log.LogDebug("Processing semi-critical internal jobs");
#if (DEBUG)
log.LogInformation("Processing semi-critical internal jobs (backup, pm, notification etc)");
#endif
//BACKUP
await CoreJobBackup.DoWorkAsync();