From 7b313b8f9b29dcb981c41723c2d6b2664e143853 Mon Sep 17 00:00:00 2001 From: Ian Fijolek Date: Mon, 22 Jan 2024 08:50:49 -0800 Subject: [PATCH] Move log line to the proper location --- scheduler.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scheduler.go b/scheduler.go index a355993..41930f6 100644 --- a/scheduler.go +++ b/scheduler.go @@ -115,9 +115,9 @@ func ScheduleAndRunJobs(jobs []Job) error { defer func() { ctx := scheduler.Stop() <-ctx.Done() - }() - fmt.Println("All jobs successfully stopped") + fmt.Println("All jobs successfully stopped") + }() return nil }