User Tools

Site Tools


api:tools:scheduledjobs:runnow

API : Tools: Scheduled jobs : Run now

Introduction

Sets when to now, so the job is picked up on the scheduler's next tick - within 5 seconds. Useful for testing a schedule without waiting for its next occurrence.

A recurring job advances to its normal next occurrence after the run, so this does not disturb the schedule.

Request

URL https://api.telecomx.dk/tools/scheduledjobs/:id/runnow
Method POST
Access level Admin

Query example

https://api.telecomx.dk/tools/scheduledjobs/6a2a6b21db0276bd0a548391/runnow

Response

{ "success": true }

Errors

Error code Message Description
400 invalid_data The id is not a valid ObjectId
403 access_denied Insufficient access level
404 not_found No job has that id
500 internal_error <Unspecified>
api/tools/scheduledjobs/runnow.txt · Last modified: by Per Møller

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki