Open topic with navigation

# CheckResources

Checks that IDOL Speech Server has sufficient resources available to perform a task. This action returns one of the following status messages:

`AVAILABLE_LOADED` | The language pack is already loaded and the server can accept your task.
`AVAILABLE_NOT_LOADED` | The language pack is either already loaded or the task does not use one, so the server can accept your task.
`NOT_AVAILABLE` | The server has either reached the maximum number of tasks it can run in parallel or the maximum number of languages it can load. The task will be rejected if submitted.

NOTE:

The results of a `CheckResources` action might not continue to be valid if you subsequently submit new tasks to the server. In addition, `CheckResources` does not take into account any pending tasks that may be in the system (that is, tasks that have been submitted using the `AddTask` action, but are not yet fully registered with the task tracker). These tasks are shown as `PENDING` in the `GetStatus` output.

After you submit a task, Micro Focus recommends that you use the `GetStatus` action with the task token to check the status of the task. You should not make any calls to `CheckResources` for subsequent tasks until the task status changes from `PENDING` to `STARTING`, `RUNNING`, `LOADING_LM`, and so on.

## Example

    http://localhost:15000/action=CheckResources&Type=WavToText&File=Speech.wav&Out=Text1.ctm&Lang=ENUS

This action instructs IDOL Speech Server to check that it has sufficient resources to perform the `WavToText` task on the `Speech.wav` file using the `ENUS` language pack, and writing the text transcription to a file named `Text1.ctm`.

## Parameters

Except for the `SplitSize` and `Overlap` parameters, `CheckResources` accepts the same parameters as the AddTask action.

Parameter | Description | Required
--- | --- | ---
OutputEncoding | The encoding to use for the action output. |
TaskManagers | The number of task managers to split the task across. |
Type | The name of the configuration section that defines the task. | Yes

This action accepts the following standard ACI action parameters.

Parameter | Description
--- | ---
ActionID | A string to use to identify an ACI action.
EncryptResponse | Encrypt the output.
FileName | The file to write output to.
ForceTemplateRefresh | Forces the server to load the template from disk.
Output | Writes output to a file.
ResponseFormat | The format of the action output.
Template | The template to use for the action output.
TemplateParamCSVs | A list of variables to use for the specified template.

© 2015-2018 EntIT Software LLC, a Micro Focus company | Send documentation feedback to Micro Focus Close Send documentation feedback To open the configured email client on this computer, open an email window. Otherwise, copy the information below to a web mail client, and send this email to swpdl.idoldocsfeedback@microfocus.com. We appreciate your feedback! Product: Topic Title: Help Topic: Feedback:

_FT_HTML5_bannerTitle.htm