archive jobs in single worker thread

This commit is contained in:
Pay Giesselmann
2022-12-08 15:04:58 +01:00
parent ded5cda6ba
commit a0f7a598ad
3 changed files with 61 additions and 33 deletions

View File

@@ -416,7 +416,7 @@ func main() {
server.Shutdown(context.Background())
// Then, wait for any async archivings still pending...
api.OngoingArchivings.Wait()
api.JobRepository.WaitForArchiving()
}()
if config.Keys.StopJobsExceedingWalltime > 0 {