def _local_tasks():
    if getattr(_local, 'tasks', None) is None:
        _local.tasks = set()
    return _local.tasks
(Create and) return the threadlocal set of indexing tasks.
dataset/ETHPy150Open mozilla/kitsune/kitsune/search/models.py/_local_tasks