Skip to content

Profile

CLASS DESCRIPTION
Profile

Profile table.

Classes

Profile

Bases: SQLModel

Profile table.

ATTRIBUTE DESCRIPTION
jobs_remote_dir

Remote path of the job folder (only relevant if

TYPE: str | None

name

Profile name.

TYPE: str

pixi_cache_dir

Override for the PIXI_CACHE_DIR variable, which would otherwise default

TYPE: str | None

resource_type

Type of resource (either local, slurm_sudo or slurm_ssh).

TYPE: str

ssh_key_path

Path to the private SSH key of user username (only relevant if

TYPE: str | None

tasks_remote_dir

Remote path of the task folder (only relevant if

TYPE: str | None

username

Username to be impersonated, either via sudo -u or via ssh.

TYPE: str | None

Source code in fractal_server/app/models/v2/profile.py
class Profile(SQLModel, table=True):
    """
    Profile table.
    """

    id: int | None = Field(default=None, primary_key=True)

    resource_id: int = Field(foreign_key="resource.id", ondelete="RESTRICT")

    resource_type: str
    """
    Type of resource (either `local`, `slurm_sudo` or `slurm_ssh`).
    """

    name: str = Field(unique=True)
    """
    Profile name.
    """

    username: str | None = None
    """
    Username to be impersonated, either via `sudo -u` or via `ssh`.
    """

    ssh_key_path: str | None = None
    """
    Path to the private SSH key of user `username` (only relevant if
    `resource_type="slurm_ssh"`).
    """

    jobs_remote_dir: str | None = None
    """
    Remote path of the job folder (only relevant if
    `resource_type="slurm_ssh"`).
    """

    tasks_remote_dir: str | None = None
    """
    Remote path of the task folder (only relevant if
    `resource_type="slurm_ssh"`).
    """

    pixi_cache_dir: str | None = None
    """
    Override for the `PIXI_CACHE_DIR` variable, which would otherwise default
    to the `cache` subfolder of `PIXI_HOME` (only relevant if
    `resource_type="slurm_ssh"`)
    """

Attributes

jobs_remote_dir = None class-attribute instance-attribute

Remote path of the job folder (only relevant if resource_type="slurm_ssh").

name = Field(unique=True) class-attribute instance-attribute

Profile name.

pixi_cache_dir = None class-attribute instance-attribute

Override for the PIXI_CACHE_DIR variable, which would otherwise default to the cache subfolder of PIXI_HOME (only relevant if resource_type="slurm_ssh")

resource_type instance-attribute

Type of resource (either local, slurm_sudo or slurm_ssh).

ssh_key_path = None class-attribute instance-attribute

Path to the private SSH key of user username (only relevant if resource_type="slurm_ssh").

tasks_remote_dir = None class-attribute instance-attribute

Remote path of the task folder (only relevant if resource_type="slurm_ssh").

username = None class-attribute instance-attribute

Username to be impersonated, either via sudo -u or via ssh.