twick cron job interval for cashback
This commit is contained in:
parent
fd55639c02
commit
d5bfe98900
|
|
@ -158,8 +158,7 @@ func ProcessBetCashback(ctx context.Context, betService *betSvc.Service) {
|
|||
task func()
|
||||
}{
|
||||
{
|
||||
spec: "*/10 * * * * *", // 10 seconds for testing
|
||||
// spec: "0 0 0 * * *", // Daily at midnight
|
||||
spec: "0 0 0 * * *", // Daily at midnight
|
||||
task: func() {
|
||||
log.Println("process bet cashbacks...")
|
||||
if err := betService.ProcessBetCashback(ctx); err != nil {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user