def celery_enable_all():
    from celery.signals import task_prerun, task_postrun, task_failure
    task_prerun.connect(prerun_handler)
    task_postrun.connect(postrun_handler)
    # Also have to cleanup on failure.
    task_failure.connect(postrun_handler)
Enable johnny-cache in all celery tasks, clearing the local-store
dataset/ETHPy150Open jmoiron/johnny-cache/johnny/utils.py/celery_enable_all