Re: [go-nuts] Re: deadlock with a empty select{} in main goroutine.

2020-04-08 Thread 'Vikram Ingawale' via golang-nuts
Hi Manlio , The select statement will block until one of its cases is executed and in your program the select statement doesn't have any cas. so it will block forever and resulting in deadlock Thanks, Vikram Ingawale ph : +91 9766984458 On Wed, Apr 8, 2020 at 9:57 PM Manlio Perillo wrote: >

[go-nuts] Failed to schedule cron job at night

2020-05-08 Thread 'Vikram Ingawale' via golang-nuts
Hello Gophers , I am using the standard cron package to schedule cron job at midnight. but my cron job is not started at night time. for day time it works properly . my cron expression is 0 15 3 * * * means at midnight 03:15 AM daily -- You rece

Re: [go-nuts] Failed to schedule cron job at night

2020-05-08 Thread 'Vikram Ingawale' via golang-nuts
just i was scheduled below job but not logged given msg c.AddFunc("0 0 * * *", func() { log.Println("Job started at 12:00AM") }) above exp means 0 hr 0min means 12AM right .. On Sat, May 9, 2020 at 12:08 AM Brian Candler wrote: > On 08/05/2020 19:35, Vikram Ingawale wrote: > > just i w

Re: [go-nuts] Failed to schedule cron job at night

2020-05-08 Thread 'Vikram Ingawale' via golang-nuts
Go version : go version go1.14 windows/amd64 platform : Windows Code : package main import ( "log" "gopkg.in/robfig/cron.v2" "github.com/gin-gonic/gin" ) func main() { g := gin.Default() c := cron.New() c.AddFunc("0 0 * * *", func() { log.Println("Job started at 12:00AM")

Re: [go-nuts] Failed to schedule cron job at night

2020-05-09 Thread 'Vikram Ingawale' via golang-nuts
Thanks for your help. I am using go 1.14.0 Ok I’m updates it to 1.14.2 and then checking Tonight On Sat, 9 May 2020 at 1:01 PM, Brian Candler wrote: > I left that program running overnight. This morning I found: > > root@builder:~# go get github.com/gin-gonic/gin > go get gopkg.in/robfig/cron

Re: [go-nuts] Failed to schedule cron job at night

2020-05-10 Thread 'Vikram Ingawale' via golang-nuts
Using ("15 2 * * ?") this exp it works properly for me. Thanks On Sat, May 9, 2020 at 1:42 PM Vikram Ingawale wrote: > > Thanks for your help. > > I am using go 1.14.0 > > Ok I’m updates it to 1.14.2 and then checking Tonight > > On Sat, 9 May 2020 at 1:01 PM, Brian Candler wrote: > >> I le