-
Notifications
You must be signed in to change notification settings - Fork 117
Open
Description
- Line 80 in server.go: schedulerOpts: &asynq.SchedulerOpts{}
- Creates an empty scheduler options struct - Line 271 in options.go: s.schedulerOpts.Location = loc
- The WithLocation() option correctly sets the location - Line 707 in server.go: s.scheduler = asynq.NewScheduler(s.redisConnOpt, s.schedulerOpts)
- BUT the scheduler is created in createAsynqScheduler() which is called BEFORE the options are applied!
The Problem:
The order of operations is wrong:
- ✅ NewServer() creates server with empty schedulerOpts
- ❌ createAsynqScheduler() creates scheduler with empty options (defaults to UTC)
- ✅ WithLocation() sets the location AFTER scheduler is already created
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels