Closed aguegu closed 11 months ago
You've found yourself a bug! If you would like to send a PR, it would be amazing. Otherwise, I'll take a look when I can.
Thanks @mcollina for your encouragement. Feel proud and lucky to contribute.
fixed?
Fixed with #78
I would like to implement a simple retry mechanism with fastq(1.15.0)'s error handler, like every task got 3 more chances. So for the following tries, I would prefer them to be
unshift
ed into the queue. But the log looks like:What I expected is the log like this which is replacing
unshift()
withpush()
:so the worker got executed 4 times before giving up.
I do not know why
unshift
only got the work executed once. Butunshift
is what I want in this queue, because an immediate retry may just get it done. It does not have toretry it later
orwait all over again
.