# Batch Overview

The general principle behind batch processing is automating repetitive tasks. Single tasks are known as *jobs*, while a set of jobs is known as a *batch*. This distinction is mostly academic, since the terms *job* and *batch job* are now mostly synonymous, but here we'll use the terms separately.

There are three basic steps in a batch or job-oriented workflow:

1. Copy input data from archival storage to scratch space
2. Run computational tasks over the input data
3. Copy output to archival storage

On Chinook the first and last steps must occur on *login nodes*, and the computation step on *compute nodes*. This is enforced by the login nodes having finite CPU [ulimits](https://www.gnu.org/software/bash/manual/html_node/Bash-Builtins.html#index-ulimit) set and [$ARCHIVE](/uaf-rcs-hpc-docs/available-filesystems/available-filesystems.md#archive) not being present on the compute nodes.

Depending on the scale and characteristics of a particular job, different jobs may require different combinations of computational resources. Garnering these resources is a combination of:

* Choosing which [partition](/uaf-rcs-hpc-docs/using-batch/available-partitions.md) to submit the job to
* Choosing what resources to request from the partition

This is done by writing [batch scripts ](/uaf-rcs-hpc-docs/using-batch/batch-scripts.md)whose directives specify these resources.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://uaf-rcs.gitbook.io/uaf-rcs-hpc-docs/using-batch/batch-overview.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
