When I'm debugging code, as soon as i change something, flask does a reload., and all queues are empty again. I think I'm going back to the separate process for a task emulator. Or do you have an idea of how to keep the queues?