## Tools.slurm.SlurmClient


Run one-shot Slurm submission and inspection commands.


Usage

``` python
Tools.slurm.SlurmClient()
```


## Methods

| Name | Description |
|----|----|
| [active_jobs()](#active_jobs) | Return one snapshot of active jobs for a single user. |
| [job_history()](#job_history) | Return the allocation-level accounting record for one job. |
| [submit()](#submit) | Submit an existing batch script and return its Slurm job ID. |

------------------------------------------------------------------------


#### active_jobs()


Return one snapshot of active jobs for a single user.


Usage

``` python
active_jobs(user=None)
```


------------------------------------------------------------------------


#### job_history()


Return the allocation-level accounting record for one job.


Usage

``` python
job_history(job_id)
```


------------------------------------------------------------------------


#### submit()


Submit an existing batch script and return its Slurm job ID.


Usage

``` python
submit(script)
```
