# QueueInfo

The `QueueInfo` action provides information about the asynchronous actions that the ACI server has queued, is processing, or has finished. You can use the `QueueInfo` action to:

- pause and resume processing the queued actions
- cancel a queued action
- change the priority of a queued action
- retrieve the action parameters passed to an action that is pending or in progress
- determine whether an action has finished
- retrieve the results of a finished action

When you use `QueueAction=getStatus` to check the status of actions, you can use the `Sort-By` and `Sort-Order` parameters to sort the returned actions. If you do not specify these parameters, the actions are sorted by the time they were received, with the most recent action listed first. You can also use the `State` parameter to filter the actions that are returned by their status.

`QueueInfo` is a synchronous action.

## Parameters

Parameter | Description | Required
--- | --- | ---
ActionID | A string to use to identify an ACI action. | No
Priority | To change the priority of an action using `QueueAction=changePriority`, specify the new priority as an integer. | Required when `QueueAction=changePriority`
QueueAction | The action to perform on the queue. | Yes
QueueName | The name of the queue to query. There is one queue for each asynchronous action. | Yes
Token | To specify a single action in the queue, specify the token. | Required when `QueueAction=cancel` or `QueueAction=changePriority`

When `QueueAction=getStatus`, you can use the following action parameters to filter and sort the actions that are returned:

Parameter | Description | Required
--- | --- | ---
Finished-After | Return actions that finished after the specified time. | No
Finished-Before | Return actions that finished before the specified time. | No
Max-Priority | Return actions with a priority the same as or lower than the specified value. | No
MaxResults | The maximum number of results to return in response to a request with `QueueAction=getStatus`. | No
Min-Priority | Return actions with a priority the same as or higher than the specified value. | No
Queued-After | Return actions that were added to the queue after the specified time. | No
Queued-Before | Return actions that were added to the queue before the specified time. | No
Sort-By | The property to use to sort the actions that are returned (`queue-time`, `start-time`, `finish-time`). | No
Sort-Order | The order used to sort the actions that are returned (`ascending`, `descending`). | No
Start | The index of the first result to return in response to a request with `QueueAction=getStatus`. The index of the first result is `1`. | No
Started-After | Return actions that began processing after the specified time. | No
Started-Before | Return actions that began processing before the specified time. | No
State | The actions to return, based on their current state (`queued`, `running`, `finished`). This parameter accepts a comma-separated list of states. If you do not set this parameter, information is returned for all actions. | No

## Examples

To return the status of all `Fetch` actions in the specified action queue:

    http://localhost:1234/action=QueueInfo
                                 &QueueAction=GetStatus
                                 &QueueName=Fetch

To return the status and results of the ten most recently finished actions in the specified queue, sorted by the time the server finished processing them, with the most recently completed action listed first:

    http://localhost:1234/action=QueueInfo
                                 &QueueAction=GetStatus
                                 &QueueName=Fetch
                                 &State=finished
                                 &Sort-By=finish-time
                                 &Sort-Order=descending
                                 &MaxResults=10
                                 &Start=1

To change the priority of an action:

    http://localhost:1234/action=QueueInfo
                                 &QueueAction=changePriority
                                 &QueueName=Fetch
                                 &Token=MTAuMi4xMDUuMzQ6MTIzNDpGRVRDSDoxNDAyOTU3MzY4
                                 &priority=100

To return the action parameters passed to an action that is pending or in progress:

    http://localhost:1234/action=QueueInfo
                                 &QueueAction=getActionParameters
                                 &QueueName=Fetch
                                 &Token=MTAuMi4xMDUuMzQ6MTIzNDpGRVRDSDoxNDAyOTU3MzY4

## Response

A sample response from `action=QueueInfo&QueueAction=getStatus&QueueName=Fetch` appears below. Each action in the queue appears between `<action>` tags. This example shows a single synchronize fetch action in the queue. The synchronize fetch action has finished and the response is included between the action tags.

    <autnresponse>
     <action>QUEUEINFO</action>
     <response>SUCCESS</response>
     <responsedata>
      <actions>
       <action>
        <documentcounts>
         <documentcount
          added="10"         collected="0"       deleted="0"
          errors="0"         holds="0"           ingestadded="0"
          ingestdeleted="0"  ingestfailed="10"   ingestupdated="0"
          inserted="0"       releasedholds="0"   seen="10"
          task="DIR1"        unchanged="0"       updated="0"/>
         <documentcount
          added="10"         collected="0"       deleted="0"
          errors="0"         holds="0"           ingestadded="0"
          ingestdeleted="0"  ingestfailed="10"   ingestupdated="0"
          inserted="0"       releasedholds="0"   seen="10"
          task="DIR2"        unchanged="0"       updated="0"
        </documentcounts>
        <fetchaction>SYNCHRONIZE</fetchaction>
        <tasks>
          <success>DIR1</success>
          <success>DIR2</success>
        </tasks>
        <token>MTAuMi4xMDUuMzQ6MTIzNDpGRVRDSDoxNDAyOTU3MzY4</token>
        <status>Finished</status>
        <queued_time>2009-Oct-15 14:44:32</queued_time>
        <time_in_queue>0</time_in_queue>
        <process_start_time>2009-Oct-15 14:44:32</process_start_time>
        <time_processing>3</time_processing>
        <process_end_time>2009-Oct-15 14:44:35</process_end_time>
       </action>
      </actions>
     </responsedata>
    </autnresponse>

The following XML is a sample response from the `QueueInfo` action, with the parameter `QueueAction=getActionParameters`. The full action was `action=queueinfo&queuename=fetch&queueaction=getActionParameters&token=...`, because this example was sent to a connector. The `<status>` element can return `Queued`, `Processing`, `Finished`, or `Error`. You cannot view the parameters for an action that has finished or failed, so the `<parameters>` element is not present for those actions.

    <autnresponse xmlns:autn="http://schemas.autonomy.com/aci/">
      <action>QUEUEINFO</action>
      <response>SUCCESS</response>
      <responsedata>
          <request>
             <token>MTAuMi4xMDUuMTEyOjcwMDQ6RkVUQ0g6LTY1OTA0MjI4Mg==</token>
             <status>Queued</status>
             <parameters>
                <parameter name="TaskSections" value="MyTask1"/>
                <parameter name="FetchAction" value="Synchronize"/>
             </parameters>
          </request>
       </responsedata>
    </autnresponse>

© Copyright 2019 Micro Focus or one of its affiliates | Send documentation feedback Close Send documentation feedback To open the configured email client on this computer, open an email window. Otherwise, copy the information below to a mail client, and then send this email to swpdl.idoldocsfeedback@microfocus.com. We appreciate your feedback! Product: Topic Title: Help Topic: Feedback:

_FT_HTML5_bannerTitle.htm