do not close channel on wait

This commit is contained in:
Pay Giesselmann 2022-12-08 16:21:56 +01:00
parent 7c6344675c
commit c4bdff2210

View File

@ -411,7 +411,6 @@ func (r *JobRepository) TriggerArchiving(job *schema.Job){
// Wait for background thread to finish pending archiving operations // Wait for background thread to finish pending archiving operations
func (r *JobRepository) WaitForArchiving(){ func (r *JobRepository) WaitForArchiving(){
// close channel and wait for worker to process remaining jobs // close channel and wait for worker to process remaining jobs
close(r.archiveChannel)
r.archivePending.Wait() r.archivePending.Wait()
} }