Child pages
  • scheduler

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Div
iddescription
Note
titleWhere 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
showRefreshtrue
iddoc

...

titleRefresh page
showDatetrue
retryEnable

...

 

...

servoy sReturnTypes2100%height: 30px;2Supported ClientssWordList

...

SmartClientsWordList

...

WebClientsWordList

...

NGClient

 

...

servoy sSummary12%30%58%height: 30px;3Methods SummaryvoidAdds a cron job to the scheduler.voidAdds a cron job to the scheduler.voidAdds a cron job to the scheduler.voidAdds a cron job to the scheduler.voidAdds a job to the scheduler.voidAdds a job to the scheduler.voidAdds a job to the scheduler.voidAdds a job to the scheduler.voidAdds a job to the scheduler.voidAdds 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 sDetail2100%height:30px2Methods DetailsaddCronJobname

addCronJob(jobname, cronTimings, method)

dessIndent
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

sIndentjobname ;cronTimings ;method ;
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow

...

addCronJobname

addCronJob(jobname, cronTimings, method, startDate)

dessIndent
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

sIndentjobname ;cronTimings ;method ;startDate ;
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow

...

addCronJobname

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

dessIndent
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

sIndentjobname ;cronTimings ;method ;startDate ;endDate ;
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow

...

addCronJobname

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

dessIndent
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

sIndentjobname ;cronTimings ;method ;startDate ;endDate ;arguments ;
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow

...

addJobname

addJob(jobname, startDate, method)

dessIndent
Adds a job to the scheduler.
prs

Parameters

sIndentjobname ;startDate ;method ;
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow

...

addJobname

addJob(jobname, startDate, method, repeatInterval)

dessIndent
Adds a job to the scheduler.
prs

Parameters

sIndentjobname ;startDate ;method ;repeatIntervalms
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow

...

addJobname

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

dessIndent
Adds a job to the scheduler.
prs

Parameters

sIndentjobname ;startDate ;method ;repeatIntervalmsrepeatCount ;
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow

...

addJobname

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

dessIndent
Adds a job to the scheduler.
prs

Parameters

sIndentjobName ;startDate ;method ;repeatIntervalmsrepeatCount ;endDate ;
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow

...

addJobname

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

dessIndent
Adds a job to the scheduler.
prs

Parameters

sIndentjobname ;startDate ;method ;repeatIntervalmsrepeatCount ;endDate ;arguments ;
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow

...

addJobname

addJob(jobname, startDate, method, arguments)

dessIndent
Adds a job to the scheduler.
prs

Parameters

sIndentjobname ;startDate ;method ;arguments ;
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow

...

getCurrentJobNamesname

getCurrentJobNames()

dessIndent
Returns an array with the current jobs.
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow

...

getLastRunJobNamename

getLastRunJobName()

dessIndent
Returns the last job run from the scheduler.
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow

...

removeJobname

removeJob(jobname)

dessIndent
Removes a job from the scheduler.
prs

Parameters

sIndentjobname ;
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow

...