Child pages
  • scheduler

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Where is the method executed?

The scheduled methods are executed in the client in which they are started. This means that if the client is closed, the scheduled method(s) will not run anymore. See Batch Processors for information how to continuously run methods in the background, in a client that will not be closed (automatically)

Cache
indextrue
refresh100d
iddoc
showRefreshtrueiddoc
titleRefresh page
showDatetrue
retryEnable



servoy sReturnTypes


2100%



height: 30px;


2Supported Clients






sWordListINLINESmartClient


sWordListINLINEWebClient


sWordListINLINENGClient






servoy sSummary


12%30%58%



height: 30px;


3Methods Summary





void



Adds a cron job to the scheduler.




void



Adds a cron job to the scheduler.




void



Adds a cron job to the scheduler.




void



Adds a cron job to the scheduler.




void



Adds a job to the scheduler.




void



Adds a job to the scheduler.




void



Adds a job to the scheduler.




void



Adds a job to the scheduler.




void



Adds a job to the scheduler.




void



Adds a job to the scheduler.






Returns an array with the current jobs.






Returns the last job run from the scheduler.






Removes a job from the scheduler.





functionservoy sDetail


2100%



height:30px


2Methods Details




addCronJob


name


addCronJob(jobname, cronTimings, method)



des



sIndent
Adds a cron job to the scheduler. A cron job must have at least one minute between each execution (otherwise it won't execute).




prs


Parameters

sIndent




jobname


;





cronTimings


;





method


;






clients


Supported Clients

sIndentSmartClient,WebClient,NGClient




sam


Sample

sIdent


javascript





lastDetailRow






addCronJob


name


addCronJob(jobname, cronTimings, method, startDate)



des



sIndent
Adds a cron job to the scheduler. A cron job must have at least one minute between each execution (otherwise it won't execute).




prs


Parameters

sIndent




jobname


;





cronTimings


;





method


;





startDate


;






clients


Supported Clients

sIndentSmartClient,WebClient,NGClient




sam


Sample

sIdent


javascript





lastDetailRow






addCronJob


name


addCronJob(jobname, cronTimings, method, startDate, endDate)



des



sIndent
Adds a cron job to the scheduler. A cron job must have at least one minute between each execution (otherwise it won't execute).




prs


Parameters

sIndent




jobname


;





cronTimings


;





method


;





startDate


;





endDate


;






clients


Supported Clients

sIndentSmartClient,WebClient,NGClient




sam


Sample

sIdent


javascript





lastDetailRow






addCronJob


name


addCronJob(jobname, cronTimings, method, startDate, endDate, arguments)



des



sIndent
Adds a cron job to the scheduler. A cron job must have at least one minute between each execution (otherwise it won't execute).




prs


Parameters

sIndent




jobname


;





cronTimings


;





method


;





startDate


;





endDate


;





arguments


;






clients


Supported Clients

sIndentSmartClient,WebClient,NGClient




sam


Sample

sIdent


javascript





lastDetailRow






addJob


name


addJob(jobname, startDate, method)



des



sIndent
Adds a job to the scheduler.




prs


Parameters

sIndent




jobname


;





startDate


;





method


;






clients


Supported Clients

sIndentSmartClient,WebClient,NGClient




sam


Sample

sIdent


javascript





lastDetailRow






addJob


name


addJob(jobname, startDate, method, repeatInterval)



des



sIndent
Adds a job to the scheduler.




prs


Parameters

sIndent




jobname


;





startDate


;





method


;





repeatInterval


ms






clients


Supported Clients

sIndentSmartClient,WebClient,NGClient




sam


Sample

sIdent


javascript





lastDetailRow






addJob


name


addJob(jobname, startDate, method, repeatInterval, repeatCount)



des



sIndent
Adds a job to the scheduler.




prs


Parameters

sIndent




jobname


;





startDate


;





method


;





repeatInterval


ms





repeatCount


;






clients


Supported Clients

sIndentSmartClient,WebClient,NGClient




sam


Sample

sIdent


javascript





lastDetailRow






addJob


name


addJob(jobName, startDate, method, repeatInterval, repeatCount, endDate)



des



sIndent
Adds a job to the scheduler.




prs


Parameters

sIndent




jobName


;





startDate


;





method


;





repeatInterval


ms





repeatCount


;





endDate


;






clients


Supported Clients

sIndentSmartClient,WebClient,NGClient




sam


Sample

sIdent


javascript





lastDetailRow






addJob


name


addJob(jobname, startDate, method, repeatInterval, repeatCount, endDate, arguments)



des



sIndent
Adds a job to the scheduler.




prs


Parameters

sIndent




jobname


;





startDate


;





method


;





repeatInterval


ms





repeatCount


;





endDate


;





arguments


;






clients


Supported Clients

sIndentSmartClient,WebClient,NGClient




sam


Sample

sIdent


javascript





lastDetailRow






addJob


name


addJob(jobname, startDate, method, arguments)



des



sIndent
Adds a job to the scheduler.




prs


Parameters

sIndent




jobname


;





startDate


;





method


;





arguments


;






clients


Supported Clients

sIndentSmartClient,WebClient,NGClient




sam


Sample

sIdent


javascript





lastDetailRow






getCurrentJobNames


name


getCurrentJobNames()



des



sIndent
Returns an array with the current jobs.




ret


Returns

sIndent




clients


Supported Clients

sIndentSmartClient,WebClient,NGClient




sam


Sample

sIdent


javascript





lastDetailRow






getLastRunJobName


name


getLastRunJobName()



des



sIndent
Returns the last job run from the scheduler.




ret


Returns

sIndent




clients


Supported Clients

sIndentSmartClient,WebClient,NGClient




sam


Sample

sIdent


javascript





lastDetailRow






removeJob


name


removeJob(jobname)



des



sIndent
Removes a job from the scheduler.




prs


Parameters

sIndent




jobname


;






ret


Returns

sIndent




clients


Supported Clients

sIndentSmartClient,WebClient,NGClient




sam


Sample

sIdent


javascript





lastDetailRow