Web API Reference Guide > Available API Methods > Job Queue Methods > The jobqueueRunNowRule Method

The jobqueueRunNowRule Method

Run a scheduled job that was scheduled for a later time.

Version: 1.3

Required Permissions: Full

HTTP method: POST

Supported by Editions: Zend Server

Request Parameters:  

Parameter

 Type

Required

Description

ruleId

Integer

Yes

A rule ID.

Expected Response Code: 200 OK - Returned for successfully running a scheduled job. For more information see Response Format.

Possible Action Specific Error Codes: None.

Example

Usage Example

Request

POST /ZendServer/Api/jobqueueRunNowRule

rule=1

Response

<?xml version="1.0" encoding="UTF-8"?>

<zendServerAPIResponse xmlns="http://www.zend.com/server/api/1.3">

<requestData>

<apiKeyName><![CDATA[Admin]]></apiKeyName>

<method>jobqueueRunNowRule</method>

</requestData>

<responseData>

<rules>

<rule>

<id>1</id>

<type>absolute</type>

<queueName>default</queueName>

<status>deleted</status>

<priority>normal</priority>

<persistent>No</persistent>

<script><![CDATA[http://url/of/job1]]></script>

<name><![CDATA[myqueue]]></name>

<vars></vars>

<http_headers></http_headers>

<appId></appId>

<lastRun></lastRun>

<nextRun></nextRun>

</rule>

</rules>

</responseData>

<zendServerAPIResponse>

 

Read Also

  Available API Methods    
  Job Queue Methods