Commit 40230a01 authored by Kamil Trzciński's avatar Kamil Trzciński 🔴

Force GC cycle after processing build

parent cf9728e4
......@@ -3,6 +3,7 @@ package commands
import (
"os"
"os/signal"
"runtime"
"sync"
"syscall"
"time"
......@@ -202,6 +203,10 @@ func (mr *MultiRunner) processRunners(id int, stopWorker chan bool, runners chan
mr.addBuild(newJob)
newJob.Run()
mr.removeBuild(newJob)
newJob = nil
// force GC cycle after processing build
runtime.GC()
case <-stopWorker:
mr.debugln("Stopping worker", id)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment