From 62bbde7936109d18bf1f727974719804dad4c105 Mon Sep 17 00:00:00 2001 From: Valery Piashchynski Date: Thu, 3 Jun 2021 14:54:06 +0300 Subject: - Do not write an error into the responseWriter if this is internal error - Handle SoftJob error Signed-off-by: Valery Piashchynski --- pkg/worker_watcher/worker_watcher.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkg/worker_watcher') diff --git a/pkg/worker_watcher/worker_watcher.go b/pkg/worker_watcher/worker_watcher.go index 557563ac..108756fc 100755 --- a/pkg/worker_watcher/worker_watcher.go +++ b/pkg/worker_watcher/worker_watcher.go @@ -182,7 +182,7 @@ func (ww *workerWatcher) Push(w worker.BaseProcess) { } // Destroy all underlying container (but let them to complete the task) -func (ww *workerWatcher) Destroy(ctx context.Context) { +func (ww *workerWatcher) Destroy(_ context.Context) { // destroy container, we don't use ww mutex here, since we should be able to push worker ww.Lock() // do not release new workers -- cgit v1.2.3