def _local_tasks():
 if (getattr(_local, 'tasks', None) is None):
  _local.tasks = set()
 return _local.tasks

def _local_tasks ( ) : if ( getattr ( _local , 'tasks' , None ) is None ) : _local . tasks = set ( ) return _local . tasks
return the threadlocal set of indexing tasks .