Cisco Cisco Workload Automation 6.3 Developer's Guide
49
Cisco Systems, Inc.
www.cisco.com
8
Queues
Overview
CWA 6.3 has predefined queues (for example, system queue). The queues may be further classified as:
Queue for long running scheduled jobs
Queue for short scheduled jobs
Queue for long running unscheduled (ad-hoc) jobs
Queue for short running unscheduled (ad-hoc) jobs
Typical Operations
Enable a specified queue (and make it active)
Set system queue limit – This operation specifies the number of jobs from the queue that can run at the same time
Queue Examples
From the browser, issue and then click Manual Commands (Post) to take you to the API post screen of the Client
Manager. You can test the REST API examples from that screen. For valid parameters and successful execution of a
request, you will get a response/result. For invalid parameters and unsuccessful execution of a request, you will get error
messages and/or exceptions.
Manager. You can test the REST API examples from that screen. For valid parameters and successful execution of a
request, you will get a response/result. For invalid parameters and unsuccessful execution of a request, you will get error
messages and/or exceptions.
Queue Example 1 – Enable a Queue
The Queue object provides a method called enable. The first parameter id (e.g. 1) specifies the queue. The second
parameter active (e.g. Y) specifies the status. The following REST API call will enable the specified queue and make it
active.
parameter active (e.g. Y) specifies the status. The following REST API call will enable the specified queue and make it
active.
<?xml version="1.0" encoding="UTF-8"?>
<entry xmlns="http://purl.org/atom/ns#">
<id>xxx</id>
<tes:Queue.enable xmlns:tes="http://www.tidalsoftware.com/client/tesservlet">
<tes:id>1</tes:id>
<tes:active>Y</tes:joblimit>
</tes:Queue.enable>
</entry>