Metadata-Version: 2.4
Name: ihep_utilities
Version: 0.0.1
Description-Content-Type: text/markdown
Provides-Extra: dev
Requires-Dist: pytest; extra == "dev"

# Description

This project has utilities meant to be used in IHEP. They are site-specific and
not useful for anyone outside IHEP.

## Submit jobs from lists of commands

One can submit jobs to the cluster by doing:

```bash
job_run_commands -f jobs.txt -e my_env
```

where `jobs.txt` is a file with the commands to be ran, one per job, e.g.:

```bash
run_calculation -i 0
run_calculation -i 1
run_calculation -i 2
run_calculation -i 3
```

would run in parallel `run_calculation` for different arguments. The flag `-e`
specifies the virtual environment where this needs to be executed.

## Modify memory from jobs that are held

To modify the amount of memory used by the held jobs and release them do:

```bash
jmanager -m 8000 -t 0
```

`-t 1` will do a test run.
