title: How to lock variable in celery task?
body: <p>I have a celery task, that mangles some variable. It works perfect if I set a single celery worker, but when I use concurrency, it all messed up. How could I lock the critical section, where variable is mangled? </p>
  
  <p>inb4: using Python 3.6, Redis both as broker and result backed. threading.Lock doesn't help in here.</p>