fix
This commit is contained in:
@@ -23,13 +23,13 @@ type Task struct {
|
||||
}
|
||||
|
||||
type InsertedTask struct {
|
||||
Queue string `bson:"queue"`
|
||||
Payload interface{} `bson:"payload"`
|
||||
PutAt time.Time `bson:"put_at"`
|
||||
AvailableFrom time.Time `bson:"available_from"`
|
||||
SecondsToExecute int `bson:"seconds_to_execute"`
|
||||
TakenAt *time.Time `bson:"taken_at"`
|
||||
Attempts int `bson:"attempts"`
|
||||
Queue string `bson:"queue"`
|
||||
Payload bson.M `bson:"payload"`
|
||||
PutAt time.Time `bson:"put_at"`
|
||||
AvailableFrom time.Time `bson:"available_from"`
|
||||
SecondsToExecute int `bson:"seconds_to_execute"`
|
||||
TakenAt *time.Time `bson:"taken_at"`
|
||||
Attempts int `bson:"attempts"`
|
||||
}
|
||||
|
||||
func Add(task InsertedTask) error {
|
||||
|
||||
Reference in New Issue
Block a user