diff --git a/internal/repository/job.go b/internal/repository/job.go index 100e26b..f305cd0 100644 --- a/internal/repository/job.go +++ b/internal/repository/job.go @@ -411,7 +411,6 @@ func (r *JobRepository) TriggerArchiving(job *schema.Job){ // Wait for background thread to finish pending archiving operations func (r *JobRepository) WaitForArchiving(){ // close channel and wait for worker to process remaining jobs - close(r.archiveChannel) r.archivePending.Wait() }