2
0
mirror of https://github.com/hibiken/asynq.git synced 2025-08-19 15:08:55 +08:00

Update Option interface

- Added `String()`, `Type()`, and `Value()` methods to the interface to
  aid with debugging and error handling.
This commit is contained in:
Ken Hibino
2020-10-10 06:46:47 -07:00
parent 50e7f38365
commit 8312515e64
5 changed files with 61 additions and 60 deletions

View File

@@ -299,7 +299,7 @@ type SchedulerEntry struct {
Payload map[string]interface{}
// Opts is the options for the periodic task.
Opts string
Opts []string
// Next shows the next time the task will be enqueued.
Next time.Time