# The job list, folders and groups

The left side of the [Jobs](Jobs.md) app is the list of jobs under **Available Jobs**. This page is about finding, making, ordering and handling jobs there.

## The list

Each row is a job, with a mark for how it starts: **Manual**, or its schedule. A job that is switched off is marked **Disabled**; one whose "enabled" is a variable, **Variable**.

| Control | What it does |
|---|---|
| **Filter jobs…** | shortens the list to the jobs whose name has the text in it |
| **Recent** | the jobs you opened last |
| the round arrows | reads the list again |
| **Name**, **A-Z**, **Folders first** | how the list is sorted |
| the funnel | **Show / hide jobs**: by how they start and whether they are enabled |
| the tick box | ticks rows, to act on several jobs at once |
| the footer | "1 in this folder / 1 total" |

Click a job to open it in [the designer](Jobs-Designer.md).

## New

| Entry | What it does |
|---|---|
| **New job…** | asks "Job name:" and makes an empty job in the folder you are in |
| **New folder…** | makes a folder |

A new job has **Start** and **End** and nothing between. Its first task is joined to both by the designer.

## Actions

**Actions**, and the same menu on a right click, act on the selected job, or on all ticked jobs:

| Entry | What it does |
|---|---|
| **Run Job** | starts a run now |
| **Run & Monitor Job** | starts a run and shows it under **Active Jobs** |
| **Run All Selected Jobs** | starts every ticked job |
| **Open** | opens the job in the designer |
| **Enable / disable** | switches its schedule on or off |
| **Export…** | saves the job as a file: as **XML** for another server or as a backup, or as a **PDF**, **PNG** or **SVG** for people. See [Export](Jobs-Designer.md#export). |
| **Rename…** | gives it another name. Its history and the events that start it follow. |
| **Delete…** | deletes the job and its history. Refused while it runs. |

The **⋯** menu has **Jobs settings…**, below.

## Folders

Jobs can be kept in folders, and folders in folders. A folder is opened by a click; the first row then leads up again.

| Entry of a folder's menu | What it does |
|---|---|
| **Open folder** | |
| **Add a folder inside…** | |
| **Rename folder…** | its jobs follow |
| **Delete folder…** | "Delete folder … and its contents?" for a folder with jobs: all of them go |

Folders are more than tidiness. Rights on jobs are given per folder: a role holder whose jobs scope is `folder:Finance/` sees and runs the jobs of that folder and no others. See [Who may see, change and run a job](Jobs-Access.md). Decide on folders by who looks after the jobs.

Each job is a folder on the server's disk, in `jobs`, with the job's file and the history of its runs in it. Job folders are folders there too.

## Groups and templates

Two reserved folders hold building blocks rather than jobs:

| Folder | Holds | Offered |
|---|---|---|
| `TASK_TEMPLATES` | single tasks you saved with their settings | in the task picker, under **Templates** |
| `TASK_GROUPS` | several tasks saved together | in the task picker, under **Groups** |

A group is made in the designer: select tasks, group them, and choose **Save group as template…** from the group's menu. See [The designer](Jobs-Designer.md#groups). A name that starts with `__` is reserved for the server's own temporary jobs.

## Jobs settings

| Setting | What it does |
|---|---|
| **Job scheduler enabled** | the main switch for schedules. Off: no job starts by its schedule, on any day. Jobs can still be started by hand and by events. |
| **Audit job changes** | every change of a job is written to its change log: see [The change log and audit](Jobs-Change-Log.md) |
| **Store job items** | runs keep their item lists on disk, so that a run can be looked into afterwards and resumed after a restart. Off saves disk space and loses both. |
| **Default job log name** | the file name pattern of the jobs' logs |
| **Keep a job's change trail in a file of its own** | with **Audit job changes**: the changes are kept in a file of their own instead of inside the job |
| **More detail in the job logs** | the job logs say more about each step |
| **Longest a job may run** | hours and minutes after which a job that sets no limit of its own is stopped, with the alert "Job Max Runtime Reached". Empty: no limit. |
| **Longest a task may run** | the same for each task. A task's own limit wins. |
| **Wait for running jobs at shutdown** | seconds the server waits for running jobs when it stops |

## Moving jobs between servers

A job is a folder with its name, holding the file `job.XML`, in the `jobs` folder of the server's folder (or of the folder the key `jobs_location` names). To take a job to another server, copy that folder into the other server's `jobs` folder. **Export…** as **XML** gives the same file through the browser. Passwords in a job are stored encrypted; a job that is taken to a server with another secret key arrives with passwords that server cannot read. Enter them again there. See [Secrets on disk](Security-Secrets-at-Rest.md#exports-and-copies).
