import{scheduler}from"@dirigible/job";letjob=scheduler.getJob("/sample-job/myjob.job");letparam=job.getParameter("myParam");console.log('Param is: '+param);
constscheduler=require("job/scheduler");letjob=scheduler.getJob("/sample-job/myjob.job");letparam=job.getParameter("myParam");console.log('Param is: '+param);
Functions
Function
Description
Returns
getJobs()
Returns the list of all the registered user jobs
Job array
getJob(name)
Gets a Job object by its name
Job
enable(name)
Enables the Job regular execution
-
disable(name)
Disables the Job regular execution
-
trigger(name, parameters)
Triggers the Job regular execution with parameters