avkhozov / Minion-Backend-MongoDB

MongoDB backend for Minion
https://metacpan.org/release/Minion-Backend-MongoDB
1 stars 2 forks source link

Bug in job->note method when no arguments passed #3

Closed EmilianoBruni closed 5 years ago

EmilianoBruni commented 5 years ago

$job->note must be used only to set notes. To get notes you must use $job->info->{notes}. But if you call $job->note without arguments, the job record will be destroyed in something like this

{
    "_id" : ObjectId("xxxxxxxxxxxxxxxxxxxxx"),
    "upsert" : 0,
    "returnDocument" : "after"
}
EmilianoBruni commented 5 years ago

Solved in 1.03