Is os.tmpdir() a good idea? in linux /tmp is cleaned on reboot and the queue is persistent in Redis. This can lead to inconsistency with the data. Aslo there was a time when /tmp was mounted to memory (not sure if this is still the case) and having big/many files there can deplete the memory.