mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2025-07-19 03:11:40 +02:00
do not close channel on wait
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user