> For the complete documentation index, see [llms.txt](https://docs.ccv.brown.edu/oscar/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ccv.brown.edu/oscar/submitting-jobs/condo-priority-jobs.md).

# Condo/Priority Jobs

{% hint style="info" %}
**Note:** we do not provide users condo access by default if their group/PI has a condo on the system. You will have to explicitly request a condo access and we will ask for approval from the PI.
{% endhint %}

To use your condo account to submit jobs, please follow the steps below to check the association of your Oscar account and include condo information in your batch script or command line.

**Step 1** - Check your account associations to find your condo `Account` and `Partition` information by running the following command:

```bash
sacctmgr -p list assoc where user=$USER | grep -E 'condo|Account|Partition'
```

In the example below, the user has access to two condos, where their <mark style="color:blue;">**`Account`**</mark> and <mark style="color:green;">**`Partition`**</mark> are highlighted.

{% hint style="info" %}
`Cluster|`<mark style="color:blue;">**`Account`**</mark>`|User|`<mark style="color:green;">**`Partition`**</mark>`|Share|Priority|GrpJobs|GrpTRES|GrpSubmit|GrpWall|GrpTRESMins|MaxJobs|MaxTRES|MaxTRESPerNode|MaxSubmit|MaxWall|MaxTRESMins|QOS|Def QOS|GrpTRESRunMins|`

`slurmctld|`<mark style="color:blue;">**`abcd-condo`**</mark>`|ccvdemo1|`<mark style="color:green;">**`batch`**</mark>`|1|||||||||||||abcd-condo|abcd-condo||`

`slurmctld|`<mark style="color:blue;">**`default`**</mark>`|ccvdemo1|`<mark style="color:green;">**`abcd-condo`**</mark>`|1|||||||||||||abcd-condo|abcd-condo||`
{% endhint %}

**Step 2** - Choose the correct way to submit jobs to a condo according to the condo's <mark style="color:blue;">**`Account`**</mark> column:

{% tabs %}
{% tab title="Account is " %}
For **batch script** - Please include the following line:

```bash
#SBATCH --partition=<Partition>
```

For **command line** - You can also provide this option on the command line while submitting the job using `sbatch`:

```bash
sbatch --partition=<Partition> <batch-script>
```

For **interactive session** - Similarly, you can change the account while asking for interactive access too:

<pre><code><strong>$ interact -q &#x3C;Partition> ... &#x3C;other_options>
</strong></code></pre>

{% endtab %}

{% tab title="Account is NOT " %}
For **batch script** - Please include the following line:

```bash
#SBATCH --account=<Account>
```

For **command line** - You can also provide this option on the command line while submitting the job using `sbatch`:

```bash
sbatch --account=<Account> <batch-script>
```

For **interactive session** - Similarly, you can change the account while asking for interactive access too:

```bash
interact -a <Account> ... <other_options>
```

{% endtab %}
{% endtabs %}

To see the running and pending jobs in a condo:

`condo <condo-name>`

## Premium Account (priority) jobs

If you have a premium account, that should be your default QOS for submitting jobs. You can check if you have a premium account with the command `groups`. If you have a priority account you will see `priority` in your the output form `groups`.

You can check the qos for a running job by running the command `myq`. The `QOS` column should show `"pri-<username>"`

If you are interested in seeing all your accounts and associations, you can use the following command:

```bash
sacctmgr -p list assoc where user=<username>
```
