This commit is contained in:
2019-10-23 23:15:41 +00:00
parent 925025c36e
commit c76c94051e
2 changed files with 14 additions and 15 deletions

View File

@@ -6,13 +6,9 @@ eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpYXQiOiIxNTcxODU5OTU0IiwiZXhwIjoiMTU3MjQ
## IMMEDIATE ITEMS ## IMMEDIATE ITEMS
UPDATE all the things before commencing work UPDATE all the things before commencing work
- JOBS are not running!?
3.1.0-preview1-alpine3.10
3.1-alpine3.10
3.1.0-preview1-alpine
3.1-alpine
- Post a release build fixup server to run 3.1.net - Post a release build fixup server to run 3.1.net
- Generate data job not running? Keeps saying "sleeping"
- Update client end - Update client end

View File

@@ -68,7 +68,7 @@ namespace AyaNova.Generator
while (!stoppingToken.IsCancellationRequested) while (!stoppingToken.IsCancellationRequested)
{ {
if (!justStarted) if (!justStarted)
{ {
log.LogDebug($"GeneratorService task doing background work."); log.LogDebug($"GeneratorService task doing background work.");
@@ -78,21 +78,24 @@ namespace AyaNova.Generator
AyContext ct = scope.ServiceProvider.GetRequiredService<AyContext>(); AyContext ct = scope.ServiceProvider.GetRequiredService<AyContext>();
ApiServerState serverState = scope.ServiceProvider.GetRequiredService<ApiServerState>(); ApiServerState serverState = scope.ServiceProvider.GetRequiredService<ApiServerState>();
if (!serverState.IsOpen)
{
log.LogDebug($"GeneratorService: ServerState is closed returning without processing jobs, will try again next iteration");
return;
}
//================================================================= //=================================================================
try try
{ {
await JobsBiz.ProcessJobsAsync(ct, serverState); if (!serverState.IsOpen)
{
log.LogDebug($"GeneratorService: ServerState is closed returning without processing jobs, will try again next iteration");
}
else
{
await JobsBiz.ProcessJobsAsync(ct, serverState);
}
} }
catch (Exception ex) catch (Exception ex)
{ {
log.LogError(ex,"Generate::ProcessJobs result in exception error "); log.LogError(ex, "Generate::ProcessJobs result in exception error ");
} }
//================================================================= //=================================================================
} }