qgreenland/util/task.py
def generate_layer_tasks():
    """Generate a list of pre-configured tasks based on layer configuration.

    Instead of calling tasks now, we return a list of callables with the
    arguments already populated.
    """
    tasks = []

    for cfg in CONFIG['layers'].values():
        # `gdal_remote` layers are accessed by QGIS from a remote location, so
        # no processing is required.
        if cfg['dataset']['access_method'] == 'gdal_remote':
            continue

        task = INGEST_TASKS[cfg['ingest_task']]
        tasks.append(task(layer_id=cfg['id']))

    return tasks
Generate a list of pre-configured tasks based on layer configuration.

    Instead of calling tasks now, we return a list of callables with the
    arguments already populated.
    
Generate a list of pre-configured tasks based on layer configuration.
Instead of calling tasks now, we return a list of callables with the
arguments already populated.
Generate a list of pre - configured tasks based on layer configuration . Instead of calling tasks now we return a list of callables with the arguments already populated .
def generate_layer_tasks():
    tasks = []
    for cfg in CONFIG['layers'].values():
        if cfg['dataset']['access_method'] == 'gdal_remote':
            continue
        task = INGEST_TASKS[cfg['ingest_task']]
        tasks.append(task(layer_id=cfg['id']))
    return tasks
def generate_layer_tasks ( ) : tasks = [ ] for cfg in CONFIG [ 'layers' ] . values ( ) : if cfg [ 'dataset' ] [ 'access_method' ] == 'gdal_remote' : continue task = INGEST_TASKS [ cfg [ 'ingest_task' ] ] tasks . append ( task ( layer_id = cfg [ 'id' ] ) ) return tasks
Generate a list of pre-configured tasks based on layer configuration.
Generate a list of pre - configured tasks based on layer configuration .
"""Generate a list of pre-configured tasks based on layer configuration.

    Instead of calling tasks now, we return a list of callables with the
    arguments already populated.
    """ # `gdal_remote` layers are accessed by QGIS from a remote location, so # no processing is required.