Run a job immediately
POST
/api/v1/cron/{name}/run
const url = 'http://localhost:11044/api/v1/cron/example/run';const options = {method: 'POST', headers: {'X-Embabel-Api-Key': '<X-Embabel-Api-Key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url http://localhost:11044/api/v1/cron/example/run \ --header 'X-Embabel-Api-Key: <X-Embabel-Api-Key>'Fires the named cron job outside its normal schedule and runs it inline: the request blocks until the job completes. Output goes to the active chat session when there is one, otherwise to a notification channel.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”name
required
string
Job name
Responses
Section titled “Responses”Job ran to completion
Media type*/*
object
key
additional properties
string
Job not found
Media type*/*
A refusal from the cron or handler-adoption surface: the word error and the reason
object
message
required
Why the request was refused, written to be shown. Names the job or handler where the refusal is about one
string
status
required
Always error
string

