def METHOD_NAME(*, db_session, task_id: int, status: str) -> None:
    """Resolve an existing task or re-open it."""
    task = db_session.query(Task).filter(Task.id == task_id).first()
    task.status = status
    db_session.commit()