INNER CODE UNIT · Python

set_worker_topic

browser-use/bux · agent/agency_db.py:226

def set_worker_topic(
    db: sqlite3.Connection, suggestion_id: int, worker_topic_id: int
) -> None:
    db.execute(
        """
        UPDATE suggestions
           SET worker_topic_id = ?, worker_started_at = COALESCE(worker_started_at, ?), updated_at = ?
         WHERE id = ?
        """,
        (worker_topic_id, _now(), _now(), suggestion_id),
    )
    db.commit()


def set_status(
    db: sqlite3.Connection,
    suggestion_id: int,
    status: str,

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…