@signals.task_prerun.connect
def bind_event_context(sender=None, **kwargs):
    try:
        event_context = kwargs['kwargs'].pop('event_context')
    except __HOLE__:
        return

    set_event_context(event_context)
dataset/ETHPy150Open opennode/nodeconductor/nodeconductor/server/celery.py/bind_event_context