tarantool / queue

Create task queues, add and take jobs, monitor failed tasks
Other
237 stars 52 forks source link

Add recomendation to call queue.cfg({in_replicaset = true}) before box.cfg({}) #206

Open oleg-jukovec opened 1 year ago

oleg-jukovec commented 1 year ago

I don't have a stable test results if queue.cfg({in_replicaset = true}) is called after box.cfg(). I have such errors on re-identify after a role switch:

Unable to re-identify in the pool: .../.rocks/share/tarantool/queue/abstract/queue_session.lua:223: The UUID eff1bc1e-6e56-4c1b-bc6e-9c635a5fb4fd is unknown. (0x20)

I'd like to see obvious recommendation to call queue.cfg({in_replicaset = true}) before box.cfg() in the documentation (we have such examples in README at now, but it is not obvious) if it's not a bug (I'm not actually sure).