go-workers
go-workers copied to clipboard
queue is not FIFO, but LIFO actually..
Version of go-workers
v0.0.0-20180112190529-dbf81d0b75bb
Details
- line.86 in workers.fetcher.go
- line.81 in workers.enqueue.go
My concern
I don't know the spec of Sidekiq, but I suspect we should use lpush
instead of rpush
to be FIFO.
What do you think Mr. @jrallison ?
It looks Sidekiq is actually FIFO https://github.com/mperham/sidekiq/issues/3420 .
I heard from my co-worker that fork project of this one has fixed the issue I've mentioned at https://github.com/digitalocean/go-workers2/pull/5 .