async def METHOD_NAME(
    self,
    id: str,
    timestamp: int,
    *,
    status: Optional[TaskStatus] = None,
    result: Optional[JsonMapping] = None,
    error: Optional[str] = None,
) -> bool:
    """Update a scheduled task in the DB with some new value(s).
    Args:
        id: id of the `ScheduledTask` to update
        timestamp: new timestamp of the task
        status: new status of the task
        result: new result of the task
        error: new error of the task
    Returns: `False` if no matching row was found, `True` otherwise
    """
    updatevalues: JsonDict = {"timestamp": timestamp}
    if status is not None:
        updatevalues["status"] = status
    if result is not None:
        updatevalues["result"] = json_encoder.encode(result)
    if error is not None:
        updatevalues["error"] = error
    nb_rows = await self.db_pool.simple_update(
        "scheduled_tasks",
        {"id": id},
        updatevalues,
        desc="update_scheduled_task",
    )
    return nb_rows > 0