Child pages
  • scheduler

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Wiki Markup
{hiddendiv:style=display:none}
DO NOT EDIT THE CONTENT OF THIS PAGE DIRECTLY (EXCEPT INSIDE THE DIV BELOW WITH ID=DESCRIPTION), UNLESS YOU KNOW WHAT YOU'RE DOING.
		THE STRUCTURE OF THE CONTENT IS VITAL IN BEING ABLE TO EXTRACTAUTO CHANGESUPDATE FROM THE PAGECONTENT ANDTHROUGH MERGETHE THEM BACK INTO SERVOY SOURCE{hiddenDOC GENERATOR{div}
{sub-sectiondiv:id=description|text=}{note:title=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| Batch Processor] for information how to continuously run methods in the background, in a client that will not be closed (automatically){note}{sub-section}\\ 

{table:id=|class=servoy sSummary}{colgroup}{column:width=80px|padding=0px}{column}{column}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=2}Method Summary{th}{trdiv}\\ 

{table:id=|class=servoy sSummary}{colgroup}{column:width=80px|padding=0px}{column}{column}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=2}Method Summary{th}{tr}{tbody}{tr}{td}void{td}{td}[#addCronJob]\(jobname, cronTimings, method)
Adds a cron job to the scheduler.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#addCronJob]\(jobname, cronTimings, method, startDate)
Adds a cron job to the scheduler.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#addCronJob]\(jobname, cronTimings, method, startDate, endDate)
Adds a cron job to the scheduler.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#addCronJob]\(jobname, cronTimings, method, startDate, endDate, arguments)
Adds a cron job to the scheduler.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#addCronJob#addJob]\(jobname, cronTimingsstartDate, method)
Adds a cron job to the scheduler.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#addCronJob#addJob]\(jobname, cronTimingsstartDate, method, startDaterepeatInterval)
Adds a cron job to the scheduler.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#addCronJob#addJob]\(jobname, cronTimingsstartDate, method, startDaterepeatInterval, endDaterepeatCount)
Adds a cron job to the scheduler.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#addCronJob#addJob]\(jobnamejobName, cronTimingsstartDate, method, startDaterepeatInterval, endDaterepeatCount, argumentsendDate)
Adds a cron job to the scheduler.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#addJob]\(jobname, startDate, method, repeatInterval, repeatCount, endDate, arguments)
Adds a job to the scheduler.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#addJob]\(jobname, startDate, method, repeatIntervalarguments)
Adds a job to the scheduler.{td}{tr}{tbody}{tbody}{tr}{td}void[String]\[]{td}{td}[#addJob#getCurrentJobNames]\(jobname, startDate, method, repeatInterval, repeatCount)
AddsReturns aan jobarray towith the schedulercurrent jobs.{td}{tr}{tbody}{tbody}{tr}{td}void[String]{td}{td}[#addJob#getLastRunJobName]\(jobName,)
startDate,Returns method,the repeatInterval,last repeatCount,job endDate)
Adds a job to run from the scheduler.{td}{tr}{tbody}{tbody}{tr}{td}void[Boolean]{td}{td}[#addJob#removeJob]\(jobname, startDate, method, repeatInterval, repeatCount, endDate, arguments)
AddsRemoves a job tofrom the scheduler.{td}{tr}{tbody}{tbodytable}{tr}{td}void{td}{td}[#addJob]\(jobname, startDate, method, arguments)
Adds a job to the scheduler.{td\\ 

{table:id=function|class=servoy sDetail}{colgroup}{column:width=100%|padding=0px}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=1}Method Details{th}{tr}{tbody:id=addCronJob-String_String_Function}{tbodytr:id=name}{trtd}h6.addCronJob{td}[String]\[]{td{tr}{tr:id=sig}{td}[#getCurrentJobNames]\()
Returns an array with the current jobs.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#getLastRunJobName]\()
Returns the last job run from the scheduler.{td}{tr}{tbody}{tbody}{tr}{td}[Boolean]{td}{td}[#removeJob]\(jobname)
Removes a job from the scheduler.{span:style=margin-right: 5px;}void{span}{span:style=font-weight: bold;}addCronJob{span}{span}\(jobname, cronTimings, method){span}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[String]} jobname
\{[String]} cronTimings
\{[Function]} method
{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}void{div}{td}{tr}{tbodytr:id=sam}{tabletd}*Sample*\\ 

{tablediv:id=function|class=servoy sDetailsIndent}{colgroup}{column:width=100%|padding=0px}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=1}Method Details{th}{tr}{tbody:id=addCronJob-String_String_Function|class=node}{tr:id=name}{td}h6.addCronJob{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}addCronJob{span}{span:id=iets|style=float: left;}\(jobname, cronTimings, method){span}{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:addCronJob-String_String_Function_des|trigger=button|text=}{sub-section}{sub-section:addCronJob-String_String_Function_des|trigger=none|class=sIndent}Replace with description{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:addCronJob-String_String_Function_snc|trigger=button|text=}{sub-section}{sub-section:addCronJob-String_String_Function_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:code:language=javascript}
// see: http://www.quartz-scheduler.org/docs/tutorials/crontrigger.html for more info
// add a job that runs every 20 minutes after the hour (0,20,40)
plugins.scheduler.addCronJob('20mins','0 0/20 * * * ?',method)
// add a job that runs every day at 23:30 between now and 5 days from now
var dateNow = new Date();
var date5Days = new Date(dateNow.getTime()+5*24*60*60*1000);
plugins.scheduler.addCronJob('23:30','0 30 23 ? * *',method,dateNow,date5Days)
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=addCronJob-String_String_Function_prs|trigger=button|text=}{sub-section}{sub-section:addCronJob-String_String_Function_prs|trigger=none|class=sIndent}\{[String]} jobname
\{[String]} cronTimings
\{[Function]} method
{sub-section}{Date}{tr:id=name}{td}h6.addCronJob{td}{tr}{tr:id=retsig}{td}*Returns*\\{sub-section:addCronJob-String_String_Function_ret|trigger=button|text=}{sub-section}{sub-section:addCronJob-String_String_Function_ret|trigger=none|class=sIndent}void{sub-section{span:style=margin-right: 5px;}void{span}{span:style=font-weight: bold;}addCronJob{span}{span}\(jobname, cronTimings, method, startDate){span}{td}{tr}{builder-show:permission=edit}{tr:id=seeprs}{td}*Also seeParameters*\\{sub-section:addCronJob-String_String_Function_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:addCronJob-String_String_Function_see|trigger=none}{sub-section}\{[String]} jobname
\{[String]} cronTimings
\{[Function]} method
\{[Date]} startDate
{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=linkret}{td}*External linksReturns*\\{sub-section:addCronJob-String_String_Function_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:addCronJob-String_String_Function_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}div:class=sIndent}void{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{sub-section:addCronJob-String_String_Function_sam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:addCronJob-String_String_Function_sam|trigger=none}{code:language=javascript}
// see: http://www.quartz-scheduler.org/docs/tutorials/crontrigger.html for more info
// add a job that runs every 20 minutes after the hour (0,20,40)
plugins.scheduler.addCronJob('20mins','0 0/20 * * * ?',method)
// add a job that runs every day at 23:30 between now and 5 days from now
var dateNow = new Date();
var date5Days = new Date(dateNow.getTime()+5*24*60*60*1000);
plugins.scheduler.addCronJob('23:30','0 30 23 ? * *',method,dateNow,date5Days)
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=addCronJob-String_String_Function_Date_Date|class=node}{tr:id=name}{td}h6.addCronJob{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}addCronJob{span}{span:id=iets|style=float: left;}\(jobname, cronTimings, method, startDate, endDate){span}{td}{tr}{builder-show:permission=edit}{tr:id=desprs}{td}{sub-section:addCronJob-String_String_Function_Date_des|trigger=button|text=}{sub-section}{sub-section:addCronJob-String_String_Function_Date_des|trigger=none|class=sIndent}Replace with description{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit*Parameters*\\{div:class=sIndent}\{[String]} jobname
\{[String]} cronTimings
\{[Function]} method
\{[Date]} startDate
\{[Date]} endDate
{div}{td}{tr}{tr:id=sncret}{td}*SinceReturns*\\{sub-section:addCronJob-String_String_Function_Date_snc|trigger=button|text=}{sub-section}{sub-section:addCronJob-String_String_Function_Date_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:addCronJob-String_String_Function_Date_prs|trigger=button|text=}{sub-section}{sub-section:addCronJob-String_String_Function_Date_prs|trigger=none|class=sIndent}\{[String]} jobname
\{[String]} cronTimings
\{[Function]} method
\{[Date]} startDate
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:addCronJob-String_String_Function_Date_ret|trigger=button|text=}{sub-section}{sub-section:addCronJob-String_String_Function_Date_ret|trigger=none|class=sIndent}void{sub-sectiondiv:class=sIndent}void{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
// see: http://www.quartz-scheduler.org/docs/tutorials/crontrigger.html for more info
// add a job that runs every 20 minutes after the hour (0,20,40)
plugins.scheduler.addCronJob('20mins','0 0/20 * * * ?',method)
// add a job that runs every day at 23:30 between now and 5 days from now
var dateNow = new Date();
var date5Days = new Date(dateNow.getTime()+5*24*60*60*1000);
plugins.scheduler.addCronJob('23:30','0 30 23 ? * *',method,dateNow,date5Days)
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{builder-show:permission=edittbody}{trtbody:id=see}{td}*Also see*\\{sub-section:addCronJob-String_String_Function_Date_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:addCronJob-String_String_Function_Date_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=editDate_ObjectArray}{tr:id=name}{td}h6.addCronJob{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}void{span}{span:style=font-weight: bold;}addCronJob{span}{span}\(jobname, cronTimings, method, startDate, endDate, arguments){span}{td}{tr}{tr:id=linkprs}{td}*External linksParameters*\\{sub-section:addCronJob-String_String_Function_Date_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:addCronJob-String_String_Function_Date_link|trigger=none}{sub-section}div:class=sIndent}\{[String]} jobname
\{[String]} cronTimings
\{[Function]} method
\{[Date]} startDate
\{[Date]} endDate
\{[Object]\[]} arguments
{div}{td}{tr}{builder-show}{tr:id=samret}{td}*SampleReturns*\\{sub-section:addCronJob-String_String_Function_Date_sam|trigger=button|text=}{sub-section}div:class=sIndent}void{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{sub-section:addCronJob-String_String_Function_Date_sam|trigger=none}{code:language=javascript}
// see: http://www.quartz-scheduler.org/docs/tutorials/crontrigger.html for more info
// add a job that runs every 20 minutes after the hour (0,20,40)
plugins.scheduler.addCronJob('20mins','0 0/20 * * * ?',method)
// add a job that runs every day at 23:30 between now and 5 days from now
var dateNow = new Date();
var date5Days = new Date(dateNow.getTime()+5*24*60*60*1000);
plugins.scheduler.addCronJob('23:30','0 30 23 ? * *',method,dateNow,date5Days)
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=addCronJobaddJob-String_StringDate_Function_Date_Date|class=node}{tr:id=name}{td}h6.addCronJobaddJob{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}addCronJobaddJob{span}{span:id=iets|style=float: left;}\(jobname, cronTimings, method, startDate, endDate}\(jobname, startDate, method){span}{td}{tr}{builder-show:permission=edit}{tr:id=desprs}{td}{sub-section:addCronJob-String_String_Function_Date_Date_des|trigger=button|text=}{sub-section}{sub-section:addCronJob-String_String_Function_Date_Date_des|trigger=none|class=sIndent}Replace with description{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit*Parameters*\\{div:class=sIndent}\{[String]} jobname
\{[Date]} startDate
\{[Function]} method
{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}void{div}{td}{tr}{tr:id=sncsam}{td}*SinceSample*\\{sub-section:addCronJob-String_String_Function_Date_Date_snc|trigger=button|text=}{sub-section}{sub-section:addCronJob-String_String_Function_Date_Date_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:addCronJob-String_String_Function_Date_Date_prs|trigger=button|text=}{sub-section}{sub-section:addCronJob-String_String_Function_Date_Date_prs|trigger=none|class=sIndent}\{[String]} jobname
\{[String]} cronTimings
\{[Function]} method
\{[Date]} startDate
\{[Date]} endDate
{sub-sectiondiv:class=sIndent}{code:language=javascript}
// add a job that runs at the given date (20 seconds in the future)
// and repeats that every 20 seconds for 40 times or the enddate is reached (0 for no repeats = just one call)
var startDate = new Date();
startDate.setTime(startDate.getTime()+20000);
var endDate = new Date(startDate.getTime()+100000);
plugins.scheduler.addJob('in20seconds',startDate,method,20000,40,endDate)
{code}{div}{td}{tr}{tr:idclass=retlastDetailRow}{td}*Returns*\\{sub-section:addCronJob-String_String_Function_Date_Date_ret|trigger=button|text=}{sub-section}{sub-section:addCronJob-String_String_Function_Date_Date_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{tbody}{tbody:id=addJob-String_Date_Function_Number}{tr:id=name}{td}h6.addJob{td}{tr}{builder-show:permission=edit}{tr:id=seesig}{td}*Also see*\\{sub-section:addCronJob-String_String_Function_Date_Date_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:addCronJob-String_String_Function_Date_Date_see|trigger=none}{sub-section}{div{span:style=margin-right: 5px;}void{span}{span:style=font-weight: bold;}addJob{span}{span}\(jobname, startDate, method, repeatInterval){span}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=linkprs}{td}*Parameters*External links*\\{sub-section:addCronJob-String_String_Function_Date_Date_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:addCronJob-String_String_Function_Date_Date_link|trigger=none}{sub-section}div:class=sIndent}\{[String]} jobname
\{[Date]} startDate
\{[Function]} method
\{[Number]} repeatInterval -- ms
{div}{td}{tr}{builder-show}{tr:id=samret}{td}*SampleReturns*\\{sub-section:addCronJob-String_String_Function_Date_Date_sam|trigger=button|text=}{sub-section}div:class=sIndent}void{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{sub-section:addCronJob-String_String_Function_Date_Date_sam|trigger=none}{code:language=javascript}
// see: http://www.quartz-scheduler.org/docs/tutorials/crontrigger.html for more info
// add a job that runs every 20 minutes after the hour (0,20,40)
plugins.scheduler.addCronJob('20mins','0 0/20 * * * ?',methodadd a job that runs at the given date (20 seconds in the future)
// addand arepeats jobthat thatevery runs20 everyseconds dayfor at40 23:30times betweenor nowthe andenddate 5is daysreached from(0 nowfor varno dateNowrepeats = new Date(just one call)
var startDate = new Date();
startDate.setTime(startDate.getTime()+20000);
var date5DaysendDate = new Date(dateNowstartDate.getTime()+5*24*60*60*1000100000);
plugins.scheduler.addCronJobaddJob('23:30in20seconds','0 30 23 ? * *'startDate,method,20000,dateNow40,date5DaysendDate)
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=addCronJobaddJob-String_StringDate_Function_Date_Date_ObjectArray|class=nodeNumber_Number}{tr:id=name}{td}h6.addCronJobaddJob{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; fontfont-weight: bold;}addCronJobaddJob{span}{span:id=iets|style=float: left;}\(jobname, cronTimingsstartDate, method, startDaterepeatInterval, endDate, argumentsrepeatCount){span}{td}{tr}{builder-show:permission=edit}{tr:id=desprs}{td}{sub-section:addCronJob-String_String_Function_Date_Date_ObjectArray_des|trigger=button|text=}{sub-section}{sub-section:addCronJob-String_String_Function_Date_Date_ObjectArray_des|trigger=none|class=sIndent}Replace with description{sub-section*Parameters*\\{div:class=sIndent}\{[String]} jobname
\{[Date]} startDate
\{[Function]} method
\{[Number]} repeatInterval -- ms
\{[Number]} repeatCount
{div}{td}{tr}{builder-show}{builder-show:permission=edittr:id=ret}{td}*Returns*\\{div:class=sIndent}void{div}{td}{tr}{tr:id=sncsam}{td}*SinceSample*\\{sub-section:addCronJob-String_String_Function_Date_Date_ObjectArray_snc|trigger=button|text=}{sub-section}{sub-section:addCronJob-String_String_Function_Date_Date_ObjectArray_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:addCronJob-String_String_Function_Date_Date_ObjectArray_prs|trigger=button|text=}{sub-section}{sub-section:addCronJob-String_String_Function_Date_Date_ObjectArray_prs|trigger=none|class=sIndent}\{[String]} jobname
\{[String]} cronTimings
\{[Function]} method
\{[Date]} startDate
\{[Date]} endDate
\{[Object]\[]} arguments
{sub-section}{div:class=sIndent}{code:language=javascript}
// add a job that runs at the given date (20 seconds in the future)
// and repeats that every 20 seconds for 40 times or the enddate is reached (0 for no repeats = just one call)
var startDate = new Date();
startDate.setTime(startDate.getTime()+20000);
var endDate = new Date(startDate.getTime()+100000);
plugins.scheduler.addJob('in20seconds',startDate,method,20000,40,endDate)
{code}{div}{td}{tr}{tr:id=retclass=lastDetailRow}{td}{td}*Returns*\\{sub-section:addCronJob}{tr}{tbody}{tbody:id=addJob-String_StringDate_Function_Date_Date_ObjectArray_ret|trigger=button|text=}{sub-section}{sub-section:addCronJob-String_String_Function_Date_Date_ObjectArray_ret|trigger=none|class=sIndent}void{sub-sectionNumber_Number_Date}{tr:id=name}{td}h6.addJob{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}void{span}{span:style=font-weight: bold;}addJob{span}{span}\(jobName, startDate, method, repeatInterval, repeatCount, endDate){span}{td}{tr}{builder-show:permission=edit}{tr:id=seeprs}{td}*Also seeParameters*\\{sub-section:addCronJob-String_String_Function_Date_Date_ObjectArray_see|trigger=button|text=}{sub-section}{divdiv:class=sIndent}{sub-section:addCronJob-String_String_Function_Date_Date_ObjectArray_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit\{[String]} jobName
\{[Date]} startDate
\{[Function]} method
\{[Number]} repeatInterval -- ms
\{[Number]} repeatCount
\{[Date]} endDate
{div}{td}{tr}{tr:id=linkret}{td}*External linksReturns*\\{sub-section:addCronJob-String_String_Function_Date_Date_ObjectArray_link|trigger=button|text=}{sub-section}div:class=sIndent}void{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{sub-section:addCronJob-String_String_Function_Date_Date_ObjectArray_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:addCronJob-String_String_Function_Date_Date_ObjectArray_sam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:addCronJob-String_String_Function_Date_Date_ObjectArray_sam|trigger=none}{code:language=javascript}
// see: http://www.quartz-scheduler.org/docs/tutorials/crontrigger.html for more info
// add a job that runs every 20 minutes after the hour (0,20,40)
plugins.scheduler.addCronJob('20mins','0 0/20 * * * ?',method)
// add a job that runs every day at 23:30 between now and 5 days from now
var dateNow = new Date();
var date5Days = new Date(dateNow.getTime()+5*24*60*60*1000);
plugins.scheduler.addCronJob('23:30','0 30 23 ? * *',method,dateNow,date5Days)
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=addJob-String_Date_Function|class=node}{tr:id=name}{td}h6.addJob{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}addJob{span}{span:id=iets|style=float: left;}\(jobname, startDate, method){span}{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:addJob-String_Date_Function_des|trigger=button|text=}{sub-section}{sub-section:addJob-String_Date_Function_des|trigger=none|class=sIndent}Replace with description{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:addJob-String_Date_Function_snc|trigger=button|text=}{sub-section}{sub-section:addJob-String_Date_Function_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:addJob-String_Date_Function_prs|trigger=button|text=}{sub-section}{sub-section:addJob-String_Date_Function_prs|trigger=none|class=sIndent}\{[String]} jobname
\{[Date]} startDate
\{[Function]} method
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:addJob-String_Date_Function_ret|trigger=button|text=}{sub-section}{sub-section:addJob-String_Date_Function_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:addJob-String_Date_Function_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:addJob-String_Date_Function_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:addJob-String_Date_Function_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:addJob-String_Date_Function_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:addJob-String_Date_Function_sam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:addJob-String_Date_Function_sam|trigger=none}{code:language=javascript}
// add a job that runs at the given date (20 seconds in the future)
// and repeats that every 20 seconds for 40 times or the enddate is reached (0 for no repeats = just one call)
var startDate = new Date();
startDate.setTime(startDate.getTime()+20000);
var endDate = new Date(startDate.getTime()+100000);
plugins.scheduler.addJob('in20seconds',startDate,method,20000,40,endDate)
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=addJob-String_Date_Function_Number|class=node}{tr:id=name}{td}h6.addJob{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}addJob{span}{span:id=iets|style=float: left;}\(jobname, startDate, method, repeatInterval){span}{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:addJob-String_Date_Function_Number_des|trigger=button|text=}{sub-section}{sub-section:addJob-String_Date_Function_Number_des|trigger=none|class=sIndent}Replace with description{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:addJob-String_Date_Function_Number_snc|trigger=button|text=}{sub-section}{sub-section:addJob-String_Date_Function_Number_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:addJob-String_Date_Function_Number_prs|trigger=button|text=}{sub-section}{sub-section:addJob-String_Date_Function_Number_prs|trigger=none|class=sIndent}\{[String]} jobname
\{[Date]} startDate
\{[Function]} method
\{[Number]} repeatInterval -- ms
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:addJob-String_Date_Function_Number_ret|trigger=button|text=}{sub-section}{sub-section:addJob-String_Date_Function_Number_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:addJob-String_Date_Function_Number_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:addJob-String_Date_Function_Number_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:addJob-String_Date_Function_Number_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:addJob-String_Date_Function_Number_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:addJob-String_Date_Function_Number_sam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:addJob-String_Date_Function_Number_sam|trigger=none}{code:language=javascript}
// add a job that runs at the given date (20 seconds in the future)
// and repeats that every 20 seconds for 40 times or the enddate is reached (0 for no repeats = just one call)
var startDate = new Date();
startDate.setTime(startDate.getTime()+20000);
var endDate = new Date(startDate.getTime()+100000);
plugins.scheduler.addJob('in20seconds',startDate,method,20000,40,endDate)
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=addJob-String_Date_Function_Number_Number|class=node}{tr:id=name}{td}h6.addJob{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}addJob{span}{span:id=iets|style=float: left;}\(jobname, startDate, method, repeatInterval, repeatCount){span}{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:addJob-String_Date_Function_Number_Number_des|trigger=button|text=}{sub-section}{sub-section:addJob-String_Date_Function_Number_Number_des|trigger=none|class=sIndent}Replace with description{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:addJob-String_Date_Function_Number_Number_snc|trigger=button|text=}{sub-section}{sub-section:addJob-String_Date_Function_Number_Number_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:addJob-String_Date_Function_Number_Number_prs|trigger=button|text=}{sub-section}{sub-section:addJob-String_Date_Function_Number_Number_prs|trigger=none|class=sIndent}\{[String]} jobname
\{[Date]} startDate
\{[Function]} method
\{[Number]} repeatInterval -- ms
\{[Number]} repeatCount
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:addJob-String_Date_Function_Number_Number_ret|trigger=button|text=}{sub-section}{sub-section:addJob-String_Date_Function_Number_Number_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:addJob-String_Date_Function_Number_Number_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:addJob-String_Date_Function_Number_Number_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:addJob-String_Date_Function_Number_Number_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:addJob-String_Date_Function_Number_Number_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:addJob-String_Date_Function_Number_Number_sam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:addJob-String_Date_Function_Number_Number_sam|trigger=none}{code:language=javascript}
// add a job that runs at the given date (20 seconds in the future)
// and repeats that every 20 seconds for 40 times or the enddate is reached (0 for no repeats = just one call)
var startDate = new Date();
startDate.setTime(startDate.getTime()+20000);
var endDate = new Date(startDate.getTime()+100000);
plugins.scheduler.addJob('in20seconds',startDate,method,20000,40,endDate)
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=addJob-String_Date_Function_Number_Number_Date|class=node}{tr:id=name}{td}h6.addJob{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}addJob{span}{span:id=iets|style=float: left;}\(jobName, startDate, method, repeatInterval, repeatCount, endDate){span}{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:addJob-String_Date_Function_Number_Number_Date_des|trigger=button|text=}{sub-section}{sub-section:addJob-String_Date_Function_Number_Number_Date_des|trigger=none|class=sIndent}Replace with description{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:addJob-String_Date_Function_Number_Number_Date_snc|trigger=button|text=}{sub-section}{sub-section:addJob-String_Date_Function_Number_Number_Date_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:addJob-String_Date_Function_Number_Number_Date_prs|trigger=button|text=}{sub-section}{sub-section:addJob-String_Date_Function_Number_Number_Date_prs|trigger=none|class=sIndent}\{[String]} jobName
\{[Date]} startDate
\{[Function]} method
\{[Number]} repeatInterval -- ms
\{[Number]} repeatCount
\{[Date]} endDate
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:addJob-String_Date_Function_Number_Number_Date_ret|trigger=button|text=}{sub-section}{sub-section:addJob-String_Date_Function_Number_Number_Date_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:addJob-String_Date_Function_Number_Number_Date_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:addJob-String_Date_Function_Number_Number_Date_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:addJob-String_Date_Function_Number_Number_Date_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:addJob-String_Date_Function_Number_Number_Date_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:addJob-String_Date_Function_Number_Number_Date_sam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:addJob-String_Date_Function_Number_Number_Date_sam|trigger=none}{code:language=javascript}
// add a job that runs at the given date (20 seconds in the future)
// and repeats that every 20 seconds for 40 times or the enddate is reached (0 for no repeats = just one call)
var startDate = new Date();
startDate.setTime(startDate.getTime()+20000);
var endDate = new Date(startDate.getTime()+100000);
plugins.scheduler.addJob('in20seconds',startDate,method,20000,40,endDate)
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=addJob-String_Date_Function_Number_Number_Date_ObjectArray|class=node}{tr:id=name}{td}h6.addJob{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}addJob{span}{span:id=iets|style=float: left;}\(jobname, startDate, method, repeatInterval, repeatCount, endDate, arguments){span}{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:addJob-String_Date_Function_Number_Number_Date_ObjectArray_des|trigger=button|text=}{sub-section}{sub-section:addJob-String_Date_Function_Number_Number_Date_ObjectArray_des|trigger=none|class=sIndent}Replace with description{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:addJob-String_Date_Function_Number_Number_Date_ObjectArray_snc|trigger=button|text=}{sub-section}{sub-section:addJob-String_Date_Function_Number_Number_Date_ObjectArray_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:addJob-String_Date_Function_Number_Number_Date_ObjectArray_prs|trigger=button|text=}{sub-section}{sub-section:addJob-String_Date_Function_Number_Number_Date_ObjectArray_prs|trigger=none|class=sIndent}\{[String]} jobname
\{[Date]} startDate
\{[Function]} method
\{[Number]} repeatInterval -- ms
\{[Number]} repeatCount
\{[Date]} endDate
\{[Object]\[]} arguments
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:addJob-String_Date_Function_Number_Number_Date_ObjectArray_ret|trigger=button|text=}{sub-section}{sub-section:addJob-String_Date_Function_Number_Number_Date_ObjectArray_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:addJob-String_Date_Function_Number_Number_Date_ObjectArray_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:addJob-String_Date_Function_Number_Number_Date_ObjectArray_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:addJob-String_Date_Function_Number_Number_Date_ObjectArray_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:addJob-String_Date_Function_Number_Number_Date_ObjectArray_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:addJob-String_Date_Function_Number_Number_Date_ObjectArray_sam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:addJob-String_Date_Function_Number_Number_Date_ObjectArray_sam|trigger=none}{code:language=javascript}
// add a job that runs at the given date (20 seconds in the future)
// and repeats that every 20 seconds for 40 times or the enddate is reached (0 for no repeats = just one call)
var startDate = new Date();
startDate.setTime(startDate.getTime()+20000);
var endDate = new Date(startDate.getTime()+100000);
plugins.scheduler.addJob('in20seconds',startDate,method,20000,40,endDate)
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=addJob-String_Date_Function_ObjectArray|class=node}{tr:id=name}{td}h6.addJob{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}addJob{span}{span:id=iets|style=float: left;}\(jobname, startDate, method, arguments){span}{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:addJob-String_Date_Function_ObjectArray_des|trigger=button|text=}{sub-section}{sub-section:addJob-String_Date_Function_ObjectArray_des|trigger=none|class=sIndent}Replace with description{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:addJob-String_Date_Function_ObjectArray_snc|trigger=button|text=}{sub-section}{sub-section:addJob-String_Date_Function_ObjectArray_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:addJob-String_Date_Function_ObjectArray_prs|trigger=button|text=}{sub-section}{sub-section:addJob-String_Date_Function_ObjectArray_prs|trigger=none|class=sIndent}\{[String]} jobname
\{[Date]} startDate
\{[Function]} method
\{[Object]\[]} arguments
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:addJob-String_Date_Function_ObjectArray_ret|trigger=button|text=}{sub-section}{sub-section:addJob-String_Date_Function_ObjectArray_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:addJob-String_Date_Function_ObjectArray_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:addJob-String_Date_Function_ObjectArray_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:addJob-String_Date_Function_ObjectArray_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:addJob-String_Date_Function_ObjectArray_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:addJob-String_Date_Function_ObjectArray_sam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:addJob-String_Date_Function_ObjectArray_sam|trigger=none}{code:language=javascript}
// add a job that runs at the given date (20 seconds in the future)
// and repeats that every 20 seconds for 40 times or the enddate is reached (0 for no repeats = just one call)
var startDate = new Date();
startDate.setTime(startDate.getTime()+20000);
var endDate = new Date(startDate.getTime()+100000);
plugins.scheduler.addJob('in20seconds',startDate,method,20000,40,endDate)
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getCurrentJobNames|class=node}{tr:id=name}{td}h6.getCurrentJobNames{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]\[]{span}{span:id=iets|style=float: left; font-weight: bold;}getCurrentJobNames{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:getCurrentJobNames_des|trigger=button|text=}{sub-section}{sub-section:getCurrentJobNames_des|trigger=none|class=sIndent}Replace with description{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:getCurrentJobNames_snc|trigger=button|text=}{sub-section}{sub-section:getCurrentJobNames_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:getCurrentJobNames_prs|trigger=button|text=}{sub-section}{sub-section:getCurrentJobNames_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:getCurrentJobNames_ret|trigger=button|text=}{sub-section}{sub-section:getCurrentJobNames_ret|trigger=none|class=sIndent}[String]\[]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:getCurrentJobNames_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getCurrentJobNames_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:getCurrentJobNames_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getCurrentJobNames_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:getCurrentJobNames_sam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getCurrentJobNames_sam|trigger=none}{code:language=javascript}
plugins.scheduler.getCurrentJobNames()
{code}{sub-section}code:language=javascript}
// add a job that runs at the given date (20 seconds in the future)
// and repeats that every 20 seconds for 40 times or the enddate is reached (0 for no repeats = just one call)
var startDate = new Date();
startDate.setTime(startDate.getTime()+20000);
var endDate = new Date(startDate.getTime()+100000);
plugins.scheduler.addJob('in20seconds',startDate,method,20000,40,endDate)
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=addJob-String_Date_Function_Number_Number_Date_ObjectArray}{tr:id=name}{td}h6.addJob{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}void{span}{span:style=font-weight: bold;}addJob{span}{span}\(jobname, startDate, method, repeatInterval, repeatCount, endDate, arguments){span}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[String]} jobname
\{[Date]} startDate
\{[Function]} method
\{[Number]} repeatInterval -- ms
\{[Number]} repeatCount
\{[Date]} endDate
\{[Object]\[]} arguments
{div}{td}{tr}{tr:classid=lastDetailRowret}{td}{td}{tr}{tbody}{tbody:id=getLastRunJobName|class=node}{tr:id=name*Returns*\\{div:class=sIndent}void{div}{td}h6.getLastRunJobName{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}getLastRunJobName{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:getLastRunJobName_des|trigger=button|text=}{sub-section}{sub-section:getLastRunJobName_des|trigger=none|class=sIndent}Replace with description{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:getLastRunJobName_snc|trigger=button|text=}{sub-section}{sub-section:getLastRunJobName_snc|trigger=none|class=sIndent} Replace with version info{sub-section:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
// add a job that runs at the given date (20 seconds in the future)
// and repeats that every 20 seconds for 40 times or the enddate is reached (0 for no repeats = just one call)
var startDate = new Date();
startDate.setTime(startDate.getTime()+20000);
var endDate = new Date(startDate.getTime()+100000);
plugins.scheduler.addJob('in20seconds',startDate,method,20000,40,endDate)
{code}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prstr:class=lastDetailRow}{td}{td}*Parameters*\\{sub-section:getLastRunJobName_prs|trigger=button|text=}{sub-section}{sub-section:getLastRunJobName_prs|trigger=none|class=sIndent}{sub-section}}{tr}{tbody}{tbody:id=addJob-String_Date_Function_ObjectArray}{tr:id=name}{td}h6.addJob{td}{tr}{builder-show}{tr:id=retsig}{td}*Returns*\\{sub-section:getLastRunJobName_ret|trigger=button|text=}{sub-section}{sub-section:getLastRunJobName_ret|trigger=none|class=sIndent}[String]{sub-section{span:style=margin-right: 5px;}void{span}{span:style=font-weight: bold;}addJob{span}{span}\(jobname, startDate, method, arguments){span}{td}{tr}{builder-show:permission=edit}{tr:id=seeprs}{td}*Also seeParameters*\\{sub-section:getLastRunJobName_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getLastRunJobName_see|trigger=none}{sub-section}div:class=sIndent}\{[String]} jobname
\{[Date]} startDate
\{[Function]} method
\{[Object]\[]} arguments
{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=linkret}{td}*External linksReturns*\\{sub-section:getLastRunJobName_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getLastRunJobName_link|trigger=none}{sub-section}{void{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:getLastRunJobName_sam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getLastRunJobName_sam|trigger=none}{code:language=javascript}
plugins.scheduler.getLastRunJobName();
{code}{sub-section:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
// add a job that runs at the given date (20 seconds in the future)
// and repeats that every 20 seconds for 40 times or the enddate is reached (0 for no repeats = just one call)
var startDate = new Date();
startDate.setTime(startDate.getTime()+20000);
var endDate = new Date(startDate.getTime()+100000);
plugins.scheduler.addJob('in20seconds',startDate,method,20000,40,endDate)
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=removeJob-String|class=nodeid=getCurrentJobNames}{tr:id=name}{td}h6.removeJobgetCurrentJobNames{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[BooleanString]\[]{span}{span:id=iets|style=float: left; font-weight: bold;}removeJob{span}{span:id=iets|style=float: left;}\(jobname){span}getCurrentJobNames{span}{span}\(){span}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[String]\[]{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
plugins.scheduler.getCurrentJobNames()
{code}{div}{td}{tr}{builder-showtr:permissionclass=editlastDetailRow}{tr:id=destd}{td}{sub-section:removeJob-String_des|trigger=button|text=}{sub-section}{sub-section:removeJob-String_des|trigger=none|class=sIndent}Replace with description{sub-section}{td}{tr}{builder-show}{builder-show:permission=edittr}{tbody}{tbody:id=getLastRunJobName}{tr:id=name}{td}h6.getLastRunJobName{td}{tr}{tr:id=sncsig}{td}*Since*\\{sub-section:removeJob-String_snc|trigger=button|text=}{sub-section}{sub-section:removeJob-String_snc|trigger=none|class=sIndent} Replace with version info{sub-section{span:style=margin-right: 5px;}[String]{span}{span:style=font-weight: bold;}getLastRunJobName{span}{span}\(){span}{td}{tr}{builder-show}{tr:id=prsret}{td}*ParametersReturns*\\{sub-section:removeJob-String_prs|trigger=button|text=}{sub-section}{sub-section:removeJob-String_prs|trigger=none|div:class=sIndent}\{[String]} jobname
{sub-section{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:removeJob-String_ret|trigger=button|text=}{sub-section}{sub-section:removeJob-String_ret|trigger=none|class=sIndent}[Boolean]{sub-section=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
plugins.scheduler.getLastRunJobName();
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{builder-show:permission=edittbody}{tbody:id=removeJob-String}{tr:id=seename}{td}*Also see*\\{sub-section:removeJob-String_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:removeJob-String_see|trigger=none}{sub-section}{divh6.removeJob{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}[Boolean]{span}{span:style=font-weight: bold;}removeJob{span}{span}\(jobname){span}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=linkprs}{td}*External linksParameters*\\{sub-section:removeJob-String_link|trigger=button|text=}{sub-section}\\{div:class=sIndent}{sub-section:removeJob-String_link|trigger=none}{sub-section}\{[String]} jobname
{div}{td}{tr}{builder-show}{tr:id=samret}{td}*SampleReturns*\\{sub-section:removeJob-String_sam|trigger=button|text=}{sub-section}div:class=sIndent}[Boolean]{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{sub-section:removeJob-String_sam|trigger=none}{code:language=javascript}
// removes a job 'myjob' from the scheduler
plugins.scheduler.removeJob('myjob');
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{table}