Media Server 24.1

# Use Asynchronous Actions

When you send an asynchronous action, Media Server adds the task to a queue and returns a token that you can use to check its status. Media Server performs the task when a thread becomes available.

## Check the Status of an Asynchronous Action

To check the status of an asynchronous action, use the token that was returned by Media Server with the `QueueInfo` action. For more information about the `QueueInfo` action, see the Media Server Reference.

To check the status of an asynchronous action

- Send the `QueueInfo` action to Media Server with the following parameters.

  `QueueName` | The name of the action queue that you want to check.
  `QueueAction` | The action to perform. Set this parameter to `GetStatus`.
  `Token` | (Optional) The token that the asynchronous action returned. If you do not specify a token, Media Server returns the status of every action in the queue.

For example:

    /action=QueueInfo&QueueName=...&QueueAction=getstatus&Token=...

## Cancel an Asynchronous Action that is Queued

To cancel an asynchronous action that is waiting in a queue, use the following procedure.

To cancel an asynchronous action that is queued

- Send the `QueueInfo` action to Media Server with the following parameters.

  `QueueName` | The name of the action queue that contains the action to cancel.
  `QueueAction` | The action to perform . Set this parameter to `Cancel`.
  `Token` | The token that the asynchronous action returned.

## Stop an Asynchronous Action that is Running

You can stop an asynchronous action at any point.

To stop an asynchronous action that is running

- Send the `QueueInfo` action to Media Server with the following parameters.

  `QueueName` | The name of the action queue that contains the action to stop.
  `QueueAction` | The action to perform. Set this parameter to `Stop`.
  `Token` | The token that the asynchronous action returned.

Copyright 2023 Open Text
Version 24.1 | Last updated December 2023

Send documentation feedback

Close

Send documentation feedback

To send feedback using your default email client, open an email window.

Otherwise, send your feedback and the information below to MFI-swpdl.idoldocsfeedback@opentext.com.

We appreciate your feedback!

Product: IDOL Media Server 24.1

Topic Title: Use Asynchronous Actions