# WfExS-backend config

- [1. Property `WfExS-backend config > cacheDir`](#cacheDir)
- [2. Property `WfExS-backend config > crypt4gh`](#crypt4gh)
  - [2.1. Property `WfExS-backend config > crypt4gh > key`](#crypt4gh_key)
  - [2.2. Property `WfExS-backend config > crypt4gh > passphrase`](#crypt4gh_passphrase)
  - [2.3. Property `WfExS-backend config > crypt4gh > pub`](#crypt4gh_pub)
- [3. Property `WfExS-backend config > tools`](#tools)
  - [3.1. Property `WfExS-backend config > tools > containerType`](#tools_containerType)
  - [3.2. Property `WfExS-backend config > tools > engineMode`](#tools_engineMode)
  - [3.3. Property `WfExS-backend config > tools > encrypted_fs`](#tools_encrypted_fs)
    - [3.3.1. Property `WfExS-backend config > tools > encrypted_fs > type`](#tools_encrypted_fs_type)
    - [3.3.2. Property `WfExS-backend config > tools > encrypted_fs > command`](#tools_encrypted_fs_command)
    - [3.3.3. Property `WfExS-backend config > tools > encrypted_fs > fusermount_command`](#tools_encrypted_fs_fusermount_command)
    - [3.3.4. Property `WfExS-backend config > tools > encrypted_fs > idle`](#tools_encrypted_fs_idle)
  - [3.4. Property `WfExS-backend config > tools > commands`](#tools_commands)
    - [3.4.1. WfExS-backend config > tools > commands > commands items](#autogenerated_heading_2)
      - [3.4.1.1. Property `WfExS-backend config > tools > commands > commands items > key`](#tools_commands_items_key)
      - [3.4.1.2. Property `WfExS-backend config > tools > commands > commands items > path`](#tools_commands_items_path)
  - [3.5. Property `WfExS-backend config > tools > gitCommand`](#tools_gitCommand)
  - [3.6. Property `WfExS-backend config > tools > javaCommand`](#tools_javaCommand)
  - [3.7. Property `WfExS-backend config > tools > singularityCommand`](#tools_singularityCommand)
  - [3.8. Property `WfExS-backend config > tools > dockerCommand`](#tools_dockerCommand)
  - [3.9. Property `WfExS-backend config > tools > podmanCommand`](#tools_podmanCommand)
  - [3.10. Property `WfExS-backend config > tools > dotCommand`](#tools_dotCommand)
  - [3.11. Property `WfExS-backend config > tools > staticBashCommand`](#tools_staticBashCommand)
  - [3.12. Property `WfExS-backend config > tools > staticPsCommand`](#tools_staticPsCommand)
  - [3.13. Property `WfExS-backend config > tools > nextflow`](#tools_nextflow)
    - [3.13.1. Property `WfExS-backend config > tools > nextflow > dockerImage`](#tools_nextflow_dockerImage)
    - [3.13.2. Property `WfExS-backend config > tools > nextflow > version`](#tools_nextflow_version)
    - [3.13.3. Property `WfExS-backend config > tools > nextflow > maxRetries`](#tools_nextflow_maxRetries)
    - [3.13.4. Property `WfExS-backend config > tools > nextflow > maxProcesses`](#tools_nextflow_maxProcesses)
      - [3.13.4.1. Property `WfExS-backend config > tools > nextflow > maxProcesses > oneOf > item 0`](#tools_nextflow_maxProcesses_oneOf_i0)
      - [3.13.4.2. Property `WfExS-backend config > tools > nextflow > maxProcesses > oneOf > item 1`](#tools_nextflow_maxProcesses_oneOf_i1)
    - [3.13.5. Property `WfExS-backend config > tools > nextflow > maxCPUs`](#tools_nextflow_maxCPUs)
      - [3.13.5.1. Property `WfExS-backend config > tools > nextflow > maxCPUs > oneOf > item 0`](#tools_nextflow_maxCPUs_oneOf_i0)
      - [3.13.5.2. Property `WfExS-backend config > tools > nextflow > maxCPUs > oneOf > item 1`](#tools_nextflow_maxCPUs_oneOf_i1)
    - [3.13.6. Property `WfExS-backend config > tools > nextflow > maxTaskDuration`](#tools_nextflow_maxTaskDuration)
      - [3.13.6.1. Property `WfExS-backend config > tools > nextflow > maxTaskDuration > oneOf > item 0`](#tools_nextflow_maxTaskDuration_oneOf_i0)
      - [3.13.6.2. Property `WfExS-backend config > tools > nextflow > maxTaskDuration > oneOf > item 1`](#tools_nextflow_maxTaskDuration_oneOf_i1)
  - [3.14. Property `WfExS-backend config > tools > cwl`](#tools_cwl)
    - [3.14.1. Property `WfExS-backend config > tools > cwl > version`](#tools_cwl_version)
  - [3.15. Pattern Property `WfExS-backend config > tools > Path to a command`](#tools_pattern1)
- [4. Property `WfExS-backend config > workDir`](#workDir)
- [5. Property `WfExS-backend config > fetchers-setup`](#fetchers-setup)
  - [5.1. Pattern Property `WfExS-backend config > fetchers-setup > Scheme fetcher setup`](#fetchers-setup_pattern1)

**Title:** WfExS-backend config

|                           |                                                         |
| ------------------------- | ------------------------------------------------------- |
| **Type**                  | `object`                                                |
| **Required**              | No                                                      |
| **Additional properties** | [[Not allowed]](# "Additional Properties not allowed.") |

**Description:** WfExS-backend configuration file (EOSC-Life Demonstrator 7 JSON Schemas)

| Property                             | Pattern | Type   | Deprecated | Definition | Title/Description                  |
| ------------------------------------ | ------- | ------ | ---------- | ---------- | ---------------------------------- |
| - [cacheDir](#cacheDir )             | No      | string | No         | -          | Caching directory                  |
| - [crypt4gh](#crypt4gh )             | No      | object | No         | -          | Installation Crypt4GH key setup    |
| - [tools](#tools )                   | No      | object | No         | -          | External tools configuration block |
| - [workDir](#workDir )               | No      | string | No         | -          | Working directory                  |
| - [fetchers-setup](#fetchers-setup ) | No      | object | No         | -          | Fetchers parameters setup          |

## <a name="cacheDir"></a>1. Property `WfExS-backend config > cacheDir`

**Title:** Caching directory

|              |          |
| ------------ | -------- |
| **Type**     | `string` |
| **Required** | No       |

**Description:** Directory where all the cache-able content will be hold.
This directory can be removed, as its contents should be available outside.
When it is not set, a temporary directory is created for the session, being destroyed when the program finishes.

| Restrictions   |   |
| -------------- | - |
| **Min length** | 1 |

## <a name="crypt4gh"></a>2. Property `WfExS-backend config > crypt4gh`

**Title:** Installation Crypt4GH key setup

|                           |                                                         |
| ------------------------- | ------------------------------------------------------- |
| **Type**                  | `object`                                                |
| **Required**              | No                                                      |
| **Additional properties** | [[Not allowed]](# "Additional Properties not allowed.") |

**Description:** WfExS-backend needs an encryption key for several tasks, like encrypting and decrypting random keys of encrypted working directories. When this block does not exist, WfExS-backend.py creates the installation's keys, and updates the configuration file

| Property                              | Pattern | Type   | Deprecated | Definition | Title/Description                           |
| ------------------------------------- | ------- | ------ | ---------- | ---------- | ------------------------------------------- |
| + [key](#crypt4gh_key )               | No      | string | No         | -          | Secret key installation file                |
| + [passphrase](#crypt4gh_passphrase ) | No      | string | No         | -          | Passphrase used to work with the secret key |
| + [pub](#crypt4gh_pub )               | No      | string | No         | -          | Public key installation file                |

### <a name="crypt4gh_key"></a>2.1. Property `WfExS-backend config > crypt4gh > key`

**Title:** Secret key installation file

|              |          |
| ------------ | -------- |
| **Type**     | `string` |
| **Required** | Yes      |

**Description:** The path to the Crypt4GH secret key file used by this installation. If the path is relative, the directory where the configuration file resides is used for the resolution

| Restrictions   |   |
| -------------- | - |
| **Min length** | 1 |

### <a name="crypt4gh_passphrase"></a>2.2. Property `WfExS-backend config > crypt4gh > passphrase`

**Title:** Passphrase used to work with the secret key

|              |          |
| ------------ | -------- |
| **Type**     | `string` |
| **Required** | Yes      |

**Description:** Passphrase which has to be used to work with the secret key

| Restrictions   |   |
| -------------- | - |
| **Min length** | 0 |

### <a name="crypt4gh_pub"></a>2.3. Property `WfExS-backend config > crypt4gh > pub`

**Title:** Public key installation file

|              |          |
| ------------ | -------- |
| **Type**     | `string` |
| **Required** | Yes      |

**Description:** The path to the Crypt4GH public key file used by this installation. If the path is relative, the directory where the configuration file resides is used for the resolution

| Restrictions   |   |
| -------------- | - |
| **Min length** | 1 |

## <a name="tools"></a>3. Property `WfExS-backend config > tools`

**Title:** External tools configuration block

|                           |                                                         |
| ------------------------- | ------------------------------------------------------- |
| **Type**                  | `object`                                                |
| **Required**              | No                                                      |
| **Additional properties** | [[Not allowed]](# "Additional Properties not allowed.") |

**Description:** External tools configuration block

| Property                                           | Pattern | Type             | Deprecated | Definition | Title/Description                                                                                                                   |
| -------------------------------------------------- | ------- | ---------------- | ---------- | ---------- | ----------------------------------------------------------------------------------------------------------------------------------- |
| - [containerType](#tools_containerType )           | No      | enum (of string) | No         | -          | Default container technology type in this installation                                                                              |
| - [engineMode](#tools_engineMode )                 | No      | enum (of string) | No         | -          | Workflow engine invocation mode                                                                                                     |
| - [encrypted_fs](#tools_encrypted_fs )             | No      | object           | No         | -          | Working directory FUSE encrypted FS configuration block                                                                             |
| - [commands](#tools_commands )                     | No      | array of object  | No         | -          | Custom command paths                                                                                                                |
| - [gitCommand](#tools_gitCommand )                 | No      | string           | No         | -          | Git client path                                                                                                                     |
| - [javaCommand](#tools_javaCommand )               | No      | string           | No         | -          | Java path                                                                                                                           |
| - [singularityCommand](#tools_singularityCommand ) | No      | string           | No         | -          | Singularity client path                                                                                                             |
| - [dockerCommand](#tools_dockerCommand )           | No      | string           | No         | -          | Docker client path                                                                                                                  |
| - [podmanCommand](#tools_podmanCommand )           | No      | string           | No         | -          | Podman client path                                                                                                                  |
| - [dotCommand](#tools_dotCommand )                 | No      | string           | No         | -          | 'dot' client path                                                                                                                   |
| - [staticBashCommand](#tools_staticBashCommand )   | No      | string           | No         | -          | Static bash command (used in singularity based Nextflow engine executions)                                                          |
| - [staticPsCommand](#tools_staticPsCommand )       | No      | string           | No         | -          | Static ps command (used in Nextflow engine executions to assure metrics gathering works even in containers without /bin/ps command) |
| - [nextflow](#tools_nextflow )                     | No      | object           | No         | -          | -                                                                                                                                   |
| - [cwl](#tools_cwl )                               | No      | object           | No         | -          | -                                                                                                                                   |
| - [^.+Command$](#tools_pattern1 )                  | Yes     | string           | No         | -          | Path to a command                                                                                                                   |

### <a name="tools_containerType"></a>3.1. Property `WfExS-backend config > tools > containerType`

**Title:** Default container technology type in this installation

|              |                    |
| ------------ | ------------------ |
| **Type**     | `enum (of string)` |
| **Required** | No                 |
| **Default**  | `"singularity"`    |

**Description:** Type of container technology to be used by default when any workflow is launched using this installation. Supported types are:
- Singularity (default).
- Docker.
- Podman
- No containerisation technology (discouraged)
Encrypted working directories are unsupported when Docker or Podman are used due technological limitations

Must be one of:
* "singularity"
* "docker"
* "podman"
* "none"

### <a name="tools_engineMode"></a>3.2. Property `WfExS-backend config > tools > engineMode`

**Title:** Workflow engine invocation mode

|              |                    |
| ------------ | ------------------ |
| **Type**     | `enum (of string)` |
| **Required** | No                 |
| **Default**  | `"local"`          |

**Description:** Most of workflow engines are usually available both as installable executables and as containers, but when they are used inside a container usually do not support running containerised jobs, unless a very careful setup is done. Currently, WfExS-backend only partially supports Nextflow in its docker-in-docker mode.

Must be one of:
* "local"
* "docker"

### <a name="tools_encrypted_fs"></a>3.3. Property `WfExS-backend config > tools > encrypted_fs`

**Title:** Working directory FUSE encrypted FS configuration block

|                           |                                                         |
| ------------------------- | ------------------------------------------------------- |
| **Type**                  | `object`                                                |
| **Required**              | No                                                      |
| **Additional properties** | [[Not allowed]](# "Additional Properties not allowed.") |

| Property                                                        | Pattern | Type             | Deprecated | Definition | Title/Description                |
| --------------------------------------------------------------- | ------- | ---------------- | ---------- | ---------- | -------------------------------- |
| - [type](#tools_encrypted_fs_type )                             | No      | enum (of string) | No         | -          | Type of encrypted FS             |
| - [command](#tools_encrypted_fs_command )                       | No      | string           | No         | -          | Path to encryption mount program |
| - [fusermount_command](#tools_encrypted_fs_fusermount_command ) | No      | string           | No         | -          | Path to unmount command          |
| - [idle](#tools_encrypted_fs_idle )                             | No      | integer          | No         | -          | Idle minutes before autoumount   |

#### <a name="tools_encrypted_fs_type"></a>3.3.1. Property `WfExS-backend config > tools > encrypted_fs > type`

**Title:** Type of encrypted FS

|              |                    |
| ------------ | ------------------ |
| **Type**     | `enum (of string)` |
| **Required** | No                 |
| **Default**  | `"gocryptfs"`      |

**Description:** When an encrypted working directory is needed, the type of encrypted FS to be used is set up through this key. Currently, both encfs (default) and gocryptfs (recommended) are supported

Must be one of:
* "encfs"
* "gocryptfs"

#### <a name="tools_encrypted_fs_command"></a>3.3.2. Property `WfExS-backend config > tools > encrypted_fs > command`

**Title:** Path to encryption mount program

|              |          |
| ------------ | -------- |
| **Type**     | `string` |
| **Required** | No       |

**Description:** When this key is set, it overrides the default command to be used when an encrypted directory has to be created or mounted

#### <a name="tools_encrypted_fs_fusermount_command"></a>3.3.3. Property `WfExS-backend config > tools > encrypted_fs > fusermount_command`

**Title:** Path to unmount command

|              |                |
| ------------ | -------------- |
| **Type**     | `string`       |
| **Required** | No             |
| **Default**  | `"fusermount"` |

**Description:** Path to unmounting command to be used, being 'fusermount' by default

#### <a name="tools_encrypted_fs_idle"></a>3.3.4. Property `WfExS-backend config > tools > encrypted_fs > idle`

**Title:** Idle minutes before autoumount

|              |           |
| ------------ | --------- |
| **Type**     | `integer` |
| **Required** | No        |
| **Default**  | `5`       |

**Description:** Number of minutes before an idle, mounted encrypted directory will automatically unmount

### <a name="tools_commands"></a>3.4. Property `WfExS-backend config > tools > commands`

**Title:** Custom command paths

|              |                   |
| ------------ | ----------------- |
| **Type**     | `array of object` |
| **Required** | No                |

**Description:** Different modules depend on locatable programs, like git, docker, java or similar. These declarations are used to provide WfExS either custom paths or custom names. These declarations take precedence over `gitCommand`, `javaCommand` and similar ones

|                      | Array restrictions |
| -------------------- | ------------------ |
| **Min items**        | 1                  |
| **Max items**        | N/A                |
| **Items unicity**    | True               |
| **Additional items** | False              |
| **Tuple validation** | See below          |

| Each item of this array must be         | Description |
| --------------------------------------- | ----------- |
| [commands items](#tools_commands_items) | -           |

#### <a name="autogenerated_heading_2"></a>3.4.1. WfExS-backend config > tools > commands > commands items

|                           |                                                                           |
| ------------------------- | ------------------------------------------------------------------------- |
| **Type**                  | `object`                                                                  |
| **Required**              | No                                                                        |
| **Additional properties** | [[Any type: allowed]](# "Additional Properties of any type are allowed.") |

| Property                              | Pattern | Type   | Deprecated | Definition | Title/Description |
| ------------------------------------- | ------- | ------ | ---------- | ---------- | ----------------- |
| + [key](#tools_commands_items_key )   | No      | string | No         | -          | The command key   |
| + [path](#tools_commands_items_path ) | No      | string | No         | -          | The command path  |

##### <a name="tools_commands_items_key"></a>3.4.1.1. Property `WfExS-backend config > tools > commands > commands items > key`

**Title:** The command key

|              |          |
| ------------ | -------- |
| **Type**     | `string` |
| **Required** | Yes      |

**Description:** Internal symbolic name used to represent this command

##### <a name="tools_commands_items_path"></a>3.4.1.2. Property `WfExS-backend config > tools > commands > commands items > path`

**Title:** The command path

|              |          |
| ------------ | -------- |
| **Type**     | `string` |
| **Required** | Yes      |

**Description:** Either the absolute path or PATH findable program name

| Restrictions   |   |
| -------------- | - |
| **Min length** | 1 |

### <a name="tools_gitCommand"></a>3.5. Property `WfExS-backend config > tools > gitCommand`

**Title:** Git client path

|              |          |
| ------------ | -------- |
| **Type**     | `string` |
| **Required** | No       |
| **Default**  | `"git"`  |

**Description:** Git is used to materialize workflows being hosted at git repositories, like GitHub. This key sets up custom paths to git command

### <a name="tools_javaCommand"></a>3.6. Property `WfExS-backend config > tools > javaCommand`

**Title:** Java path

|              |          |
| ------------ | -------- |
| **Type**     | `string` |
| **Required** | No       |
| **Default**  | `"java"` |

**Description:** Java is needed to run Nextflow and future workflow engines. This key sets up custom paths to java installations

### <a name="tools_singularityCommand"></a>3.7. Property `WfExS-backend config > tools > singularityCommand`

**Title:** Singularity client path

|              |                 |
| ------------ | --------------- |
| **Type**     | `string`        |
| **Required** | No              |
| **Default**  | `"singularity"` |

**Description:** Singularity is used when containerType is 'singularity'. This key sets up custom paths to singularity command

### <a name="tools_dockerCommand"></a>3.8. Property `WfExS-backend config > tools > dockerCommand`

**Title:** Docker client path

|              |            |
| ------------ | ---------- |
| **Type**     | `string`   |
| **Required** | No         |
| **Default**  | `"docker"` |

**Description:** Docker is used when containerType is 'docker'. This key sets up custom paths to docker command

### <a name="tools_podmanCommand"></a>3.9. Property `WfExS-backend config > tools > podmanCommand`

**Title:** Podman client path

|              |            |
| ------------ | ---------- |
| **Type**     | `string`   |
| **Required** | No         |
| **Default**  | `"podman"` |

**Description:** Podman is used when containerType is 'podman'. This key sets up custom paths to podman command

### <a name="tools_dotCommand"></a>3.10. Property `WfExS-backend config > tools > dotCommand`

**Title:** 'dot' client path

|              |          |
| ------------ | -------- |
| **Type**     | `string` |
| **Required** | No       |
| **Default**  | `"dot"`  |

**Description:** 'dot' is used when the workflow engine generated diagram is in DOT format, to translate it to either PNG or SVG when the diagram is going to be embedded in an RO-Crate

### <a name="tools_staticBashCommand"></a>3.11. Property `WfExS-backend config > tools > staticBashCommand`

**Title:** Static bash command (used in singularity based Nextflow engine executions)

|              |                 |
| ------------ | --------------- |
| **Type**     | `string`        |
| **Required** | No              |
| **Default**  | `"bash.static"` |

**Description:** There is a bug in some bash versions which make them unsuitable to run the trace machinery from Nextflow, as the trace machinery enters in a live lock. As the images containing these faulty bash versions cannot be changed, a 'monkey patch' solution where an external, static bash version is injected on workflow execution is used. The injected static bash is found through this key, which is searched on PATH variable when it is not a full path.

### <a name="tools_staticPsCommand"></a>3.12. Property `WfExS-backend config > tools > staticPsCommand`

**Title:** Static ps command (used in Nextflow engine executions to assure metrics gathering works even in containers without /bin/ps command)

|              |               |
| ------------ | ------------- |
| **Type**     | `string`      |
| **Required** | No            |
| **Default**  | `"ps.static"` |

**Description:** Nextflow uses a bash wrapper to gather process execution statistics. One of the binaries used by the wrapper is `ps`. Some containers (for instance, r-base:latest) do not contain such binary. As the images which do not contain `ps` cannot be changed, a 'monkey patch' solution where an external, static ps version is injected on workflow execution is used. The injected static ps is found through this key, which is searched on PATH variable when it is not a full path.

### <a name="tools_nextflow"></a>3.13. Property `WfExS-backend config > tools > nextflow`

|                           |                                                                           |
| ------------------------- | ------------------------------------------------------------------------- |
| **Type**                  | `object`                                                                  |
| **Required**              | No                                                                        |
| **Additional properties** | [[Any type: allowed]](# "Additional Properties of any type are allowed.") |

| Property                                              | Pattern | Type        | Deprecated | Definition | Title/Description               |
| ----------------------------------------------------- | ------- | ----------- | ---------- | ---------- | ------------------------------- |
| - [dockerImage](#tools_nextflow_dockerImage )         | No      | string      | No         | -          | Image for docker-in-docker mode |
| - [version](#tools_nextflow_version )                 | No      | string      | No         | -          | Nextflow's version              |
| - [maxRetries](#tools_nextflow_maxRetries )           | No      | integer     | No         | -          | Retries in docker mode          |
| - [maxProcesses](#tools_nextflow_maxProcesses )       | No      | Combination | No         | -          | (deprecated) Max number of CPUs |
| - [maxCPUs](#tools_nextflow_maxCPUs )                 | No      | Combination | No         | -          | Max number of CPUs              |
| - [maxTaskDuration](#tools_nextflow_maxTaskDuration ) | No      | Combination | No         | -          | Max task duration               |

#### <a name="tools_nextflow_dockerImage"></a>3.13.1. Property `WfExS-backend config > tools > nextflow > dockerImage`

**Title:** Image for docker-in-docker mode

|              |                       |
| ------------ | --------------------- |
| **Type**     | `string`              |
| **Required** | No                    |
| **Default**  | `"nextflow/nextflow"` |

**Description:** (unfinished) When `engineMode` is `docker`, the name of the image to be fetched and used. The used tag will depend on the workflow's metadata, being by default the `version`

#### <a name="tools_nextflow_version"></a>3.13.2. Property `WfExS-backend config > tools > nextflow > version`

**Title:** Nextflow's version

|              |             |
| ------------ | ----------- |
| **Type**     | `string`    |
| **Required** | No          |
| **Default**  | `"19.04.1"` |

**Description:** Version of Nextflow engine to be used when workflow's metadata does not provide hints about minimal version needed.

#### <a name="tools_nextflow_maxRetries"></a>3.13.3. Property `WfExS-backend config > tools > nextflow > maxRetries`

**Title:** Retries in docker mode

|              |           |
| ------------ | --------- |
| **Type**     | `integer` |
| **Required** | No        |
| **Default**  | `5`       |

**Description:** Retries when `engineMode` is `docker`.
Retries system was introduced when using docker-in-docker pattern because an insidious
bug happens sometimes. See https://forums.docker.com/t/any-known-problems-with-symlinks-on-bind-mounts/32138

| Restrictions |        |
| ------------ | ------ |
| **Minimum**  | &ge; 0 |

#### <a name="tools_nextflow_maxProcesses"></a>3.13.4. Property `WfExS-backend config > tools > nextflow > maxProcesses`

**Title:** (deprecated) Max number of CPUs

|                           |                                                                           |
| ------------------------- | ------------------------------------------------------------------------- |
| **Type**                  | `combining`                                                               |
| **Required**              | No                                                                        |
| **Additional properties** | [[Any type: allowed]](# "Additional Properties of any type are allowed.") |

**Description:** Number of CPUs to be used by Nextflow. When this key has an explicit value of `null`, it depends on Nextflow criteria, which tries creating as many processes as available CPUs, spawning jobs in parallel. Not declaring it, or declaring and explicit value, imposes a limitation in the number of concurrent processes

| One of(Option)                                  |
| ----------------------------------------------- |
| [item 0](#tools_nextflow_maxProcesses_oneOf_i0) |
| [item 1](#tools_nextflow_maxProcesses_oneOf_i1) |

##### <a name="tools_nextflow_maxProcesses_oneOf_i0"></a>3.13.4.1. Property `WfExS-backend config > tools > nextflow > maxProcesses > oneOf > item 0`

|              |           |
| ------------ | --------- |
| **Type**     | `integer` |
| **Required** | No        |
| **Default**  | `4`       |

| Restrictions |        |
| ------------ | ------ |
| **Minimum**  | &ge; 1 |

##### <a name="tools_nextflow_maxProcesses_oneOf_i1"></a>3.13.4.2. Property `WfExS-backend config > tools > nextflow > maxProcesses > oneOf > item 1`

|              |        |
| ------------ | ------ |
| **Type**     | `null` |
| **Required** | No     |

#### <a name="tools_nextflow_maxCPUs"></a>3.13.5. Property `WfExS-backend config > tools > nextflow > maxCPUs`

**Title:** Max number of CPUs

|                           |                                                                           |
| ------------------------- | ------------------------------------------------------------------------- |
| **Type**                  | `combining`                                                               |
| **Required**              | No                                                                        |
| **Additional properties** | [[Any type: allowed]](# "Additional Properties of any type are allowed.") |

**Description:** Number of CPUs to be used by Nextflow. When this key has an explicit value of `null`, it depends on Nextflow criteria, which tries creating as many processes as available CPUs, spawning jobs in parallel. Not declaring it, or declaring and explicit value, imposes a limitation in the number of concurrent processes

| One of(Option)                             |
| ------------------------------------------ |
| [item 0](#tools_nextflow_maxCPUs_oneOf_i0) |
| [item 1](#tools_nextflow_maxCPUs_oneOf_i1) |

##### <a name="tools_nextflow_maxCPUs_oneOf_i0"></a>3.13.5.1. Property `WfExS-backend config > tools > nextflow > maxCPUs > oneOf > item 0`

|              |           |
| ------------ | --------- |
| **Type**     | `integer` |
| **Required** | No        |
| **Default**  | `4`       |

| Restrictions |        |
| ------------ | ------ |
| **Minimum**  | &ge; 1 |

##### <a name="tools_nextflow_maxCPUs_oneOf_i1"></a>3.13.5.2. Property `WfExS-backend config > tools > nextflow > maxCPUs > oneOf > item 1`

|              |        |
| ------------ | ------ |
| **Type**     | `null` |
| **Required** | No     |

#### <a name="tools_nextflow_maxTaskDuration"></a>3.13.6. Property `WfExS-backend config > tools > nextflow > maxTaskDuration`

**Title:** Max task duration

|                           |                                                                           |
| ------------------------- | ------------------------------------------------------------------------- |
| **Type**                  | `combining`                                                               |
| **Required**              | No                                                                        |
| **Additional properties** | [[Any type: allowed]](# "Additional Properties of any type are allowed.") |

**Description:** With this parameter it is possible to override the max task time declared for processes. This is needed for workflows which are not so customizable

| One of(Option)                                     |
| -------------------------------------------------- |
| [item 0](#tools_nextflow_maxTaskDuration_oneOf_i0) |
| [item 1](#tools_nextflow_maxTaskDuration_oneOf_i1) |

##### <a name="tools_nextflow_maxTaskDuration_oneOf_i0"></a>3.13.6.1. Property `WfExS-backend config > tools > nextflow > maxTaskDuration > oneOf > item 0`

|              |          |
| ------------ | -------- |
| **Type**     | `string` |
| **Required** | No       |

| Restrictions                      |                                                                             |
| --------------------------------- | --------------------------------------------------------------------------- |
| **Must match regular expression** | ```^[0-9]+.*$``` [Test](https://regex101.com/?regex=%5E%5B0-9%5D%2B.%2A%24) |

##### <a name="tools_nextflow_maxTaskDuration_oneOf_i1"></a>3.13.6.2. Property `WfExS-backend config > tools > nextflow > maxTaskDuration > oneOf > item 1`

|              |        |
| ------------ | ------ |
| **Type**     | `null` |
| **Required** | No     |

### <a name="tools_cwl"></a>3.14. Property `WfExS-backend config > tools > cwl`

|                           |                                                                           |
| ------------------------- | ------------------------------------------------------------------------- |
| **Type**                  | `object`                                                                  |
| **Required**              | No                                                                        |
| **Additional properties** | [[Any type: allowed]](# "Additional Properties of any type are allowed.") |

| Property                         | Pattern | Type   | Deprecated | Definition | Title/Description |
| -------------------------------- | ------- | ------ | ---------- | ---------- | ----------------- |
| - [version](#tools_cwl_version ) | No      | string | No         | -          | cwltool's version |

#### <a name="tools_cwl_version"></a>3.14.1. Property `WfExS-backend config > tools > cwl > version`

**Title:** cwltool's version

|              |                        |
| ------------ | ---------------------- |
| **Type**     | `string`               |
| **Required** | No                     |
| **Default**  | `"3.1.20210628163208"` |

**Description:** Version of cwltool engine to be used. WfExS is not currently guessing the minimal needed version, so it is either the value set up in this key or the default one

| Restrictions   |   |
| -------------- | - |
| **Min length** | 1 |

### <a name="tools_pattern1"></a>3.15. Pattern Property `WfExS-backend config > tools > Path to a command`
> All properties whose name matches the regular expression
```^.+Command$``` ([Test](https://regex101.com/?regex=%5E.%2BCommand%24))
must respect the following conditions

**Title:** Path to a command

|              |          |
| ------------ | -------- |
| **Type**     | `string` |
| **Required** | No       |

**Description:** This is a wildcard declaration to allow setting up custom paths to commands needed by several parts of the code

| Restrictions   |   |
| -------------- | - |
| **Min length** | 1 |

## <a name="workDir"></a>4. Property `WfExS-backend config > workDir`

**Title:** Working directory

|              |          |
| ------------ | -------- |
| **Type**     | `string` |
| **Required** | No       |

**Description:** Directory where all the working directories are going to be created.
When it is not set, a temporary directory is created, which will be removed when the program finishes (which avoids inspecting the working directory after the program has finished).

| Restrictions   |   |
| -------------- | - |
| **Min length** | 1 |

## <a name="fetchers-setup"></a>5. Property `WfExS-backend config > fetchers-setup`

**Title:** Fetchers parameters setup

|                           |                                                                           |
| ------------------------- | ------------------------------------------------------------------------- |
| **Type**                  | `object`                                                                  |
| **Required**              | No                                                                        |
| **Additional properties** | [[Any type: allowed]](# "Additional Properties of any type are allowed.") |

**Description:** Some fetchers could need customizations at the configuration level, like limiting throughput or setting up some proxy

| Property                                           | Pattern | Type   | Deprecated | Definition | Title/Description    |
| -------------------------------------------------- | ------- | ------ | ---------- | ---------- | -------------------- |
| - [^[a-z][a-z0-9+.-]*$](#fetchers-setup_pattern1 ) | Yes     | object | No         | -          | Scheme fetcher setup |

### <a name="fetchers-setup_pattern1"></a>5.1. Pattern Property `WfExS-backend config > fetchers-setup > Scheme fetcher setup`
> All properties whose name matches the regular expression
```^[a-z][a-z0-9+.-]*$``` ([Test](https://regex101.com/?regex=%5E%5Ba-z%5D%5Ba-z0-9%2B.-%5D%2A%24))
must respect the following conditions

**Title:** Scheme fetcher setup

|                           |                                                                           |
| ------------------------- | ------------------------------------------------------------------------- |
| **Type**                  | `object`                                                                  |
| **Required**              | No                                                                        |
| **Additional properties** | [[Any type: allowed]](# "Additional Properties of any type are allowed.") |

**Description:** Some scheme fetchers could need customizations which depend on local WfExS installation environment. This is the place where to pass that

----------------------------------------------------------------------------------------------------------------------------
Generated using [json-schema-for-humans](https://github.com/coveooss/json-schema-for-humans) on 2024-09-19 at 23:38:46 +0000
