Synchronous workers do not share memory space at all, they are completely separate processes.
Your requirement is to add state to each worker, and naturally that is something that isn't easy to do, neither is it scalable.
In your link you have a `broadcast()` function that seems to fit the bill, but again, why not enable workers to share the knowledge via a shared cache such as redis (which you might already be using as a broker)?
Of course, since workers (web or task) can always go up and down at any time, you should carefully choose how you implement statefullness in them, and make sure to handle all the edge cases.