soonq/commands/commands.py
def work_items(max_entries=None):
    """Information about the items in the work queue. Returns a
    generator of WorkItems.

    Keyword arguments:
    max_entries - (int) (Default: None) Maximum number of items to
        return. Default is to return all entries.
    """
    con = sqlite3.connect(str(DB_PATH))
    with con:
        c = con.execute(
            f"""
            SELECT
                task_id,
                queue_name,
                started,
                status,
                args,
                kwargs,
                err
            FROM {WORK_TABLENAME}
            ORDER BY started ASC
            """
        )
    if max_entries:
        items = map(WorkItem.from_tuple, c.fetchmany(size=max_entries))
    else:
        items = map(WorkItem.from_tuple, c.fetchall())
    con.close()
    return items
Information about the items in the work queue. Returns a
    generator of WorkItems.

    Keyword arguments:
    max_entries - (int) (Default: None) Maximum number of items to
        return. Default is to return all entries.
    
Information about the items in the work queue. Returns a
generator of WorkItems.

Keyword arguments:
max_entries - (int) (Default: None) Maximum number of items to
return. Default is to return all entries.
Information about the items in the work queue . Returns a generator of WorkItems . Keyword arguments : max_entries - ( int ) ( Default : None ) Maximum number of items to return . Default is to return all entries .
def work_items(max_entries=None):
    con = sqlite3.connect(str(DB_PATH))
    with con:
        c = con.execute(
            f"""
            SELECT
                task_id,
                queue_name,
                started,
                status,
                args,
                kwargs,
                err
            FROM {WORK_TABLENAME}
            ORDER BY started ASC
            """
        )
    if max_entries:
        items = map(WorkItem.from_tuple, c.fetchmany(size=max_entries))
    else:
        items = map(WorkItem.from_tuple, c.fetchall())
    con.close()
    return items
def work_items ( max_entries = None ) : con = sqlite3 . connect ( str ( DB_PATH ) ) with con : c = con . execute ( f"""
            SELECT
                task_id,
                queue_name,
                started,
                status,
                args,
                kwargs,
                err
            FROM {WORK_TABLENAME}
            ORDER BY started ASC
            """ ) if max_entries : items = map ( WorkItem . from_tuple , c . fetchmany ( size = max_entries ) ) else : items = map ( WorkItem . from_tuple , c . fetchall ( ) ) con . close ( ) return items
Information about the items in the work queue.
Information about the items in the work queue .
"""Information about the items in the work queue. Returns a
    generator of WorkItems.

    Keyword arguments:
    max_entries - (int) (Default: None) Maximum number of items to
        return. Default is to return all entries.
    """
max_entries