Re: [go-nuts] CPU usage increasing day by day because of Cron

2023-07-06 Thread Steven Hartland
Your use of sync.WaitGroup looks strange. Typically you would expect to call wg.Add(1) before a goroutine is started, wg.Done() before it returns and wg.Wait() to ensure all goroutines have completed. This doesn't seem to be what you're doing. Consider restructuring to make best use of the gorouti

[go-nuts] CPU usage increasing day by day because of Cron

2023-07-02 Thread Rohit Rohit
I am running a cron whose code is written in Golang ,and i am using mongoDb(version -4.4) as database, the cron runs after every 5 minutes of interval, i have been noticing that when i start the cron with

[go-nuts] CPU usage increasing day by day because of Cron

2023-06-30 Thread Rohit Rohit
I am running a cron whose code is written in Golang ,and i am using mongoDb(version -4.4) as database, the cron runs after every 5 minutes of interval, i have been noticing that when i start the cron within