Compare commits
1
Commits
c191974df7
...
release
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9f2092b7c5 |
@@ -3,6 +3,7 @@ package crontab
|
|||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"os"
|
||||||
|
|
||||||
"github.com/google/uuid"
|
"github.com/google/uuid"
|
||||||
"github.com/robfig/cron/v3"
|
"github.com/robfig/cron/v3"
|
||||||
@@ -48,6 +49,8 @@ func (m *Crontab) Start() error {
|
|||||||
// }))
|
// }))
|
||||||
|
|
||||||
c.Start()
|
c.Start()
|
||||||
|
// Readiness is independent of application log filtering.
|
||||||
|
fmt.Fprintln(os.Stdout, `{"event":"crontab_ready"}`)
|
||||||
log.Infof("crontab start")
|
log.Infof("crontab start")
|
||||||
|
|
||||||
<-m.options.Context.Done()
|
<-m.options.Context.Done()
|
||||||
|
|||||||
Reference in new issue
Block a user