mirror of
https://github.com/hibiken/asynq.git
synced 2025-10-25 10:56:12 +08:00
Support cronspec seconds field
This commit is contained in:
@@ -74,7 +74,7 @@ func NewScheduler(r RedisConnOpt, opts *SchedulerOpts) *Scheduler {
|
|||||||
logger: logger,
|
logger: logger,
|
||||||
client: NewClient(r),
|
client: NewClient(r),
|
||||||
rdb: rdb.NewRDB(c),
|
rdb: rdb.NewRDB(c),
|
||||||
cron: cron.New(cron.WithLocation(loc)),
|
cron: cron.New(cron.WithLocation(loc), cron.WithSeconds()),
|
||||||
location: loc,
|
location: loc,
|
||||||
done: make(chan struct{}),
|
done: make(chan struct{}),
|
||||||
preEnqueueFunc: opts.PreEnqueueFunc,
|
preEnqueueFunc: opts.PreEnqueueFunc,
|
||||||
|
|||||||
Reference in New Issue
Block a user