<cfschedule>
Provides a programmatic interface to the scheduling engine.
You can run a specified page at scheduled intervals with the option to write out static HTML pages.
This lets you offer users access to pages that publish data, such as reports, without forcing users to wait while a database transaction is performed in order to populate the data on the page.
This tag cannot have a body.
This tag is also supported within <cfscript>
<cfschedule
action=delete|run|update|list|resume|pause
serverpassword=string
hidden=boolean
readonly=boolean
task=string
operation=string
paused=boolean
file=string
path=string
startdate=any
starttime=any
url=string
publish=boolean
enddate=any
endtime=any
interval=string
requesttimeout=any
username=string
password=string
proxyserver=string
proxyuser=string
proxypassword=string
resolveurl=boolean
port=any
proxyport=any
result=string
unique=boolean
>
Examples
Syntax for cfschedule
<cfschedule
action="update"
task="test"
operation="HTTPRequest"
startDate="6/02/2019"
startTime="12:00 AM"
url="https://www.test.com/schedule_task/test.cfm"
interval="daily"
publish = "Yes"
file = "myfile.log"
path = "#expandPath('./')#" />
Action List
<cfschedule action="list" returnvariable="res">
Action Run
<cfschedule action="run" task="taskOne">
Action Pause
<cfschedule action="pause" task="taskOne">
Action Resume
<cfschedule action="resume" task="taskOne">
Action Delete
<cfschedule action="delete" task="taskOne">
See also
- Search Issue Tracker
- Search Lucee Test Cases (good for further, detailed examples)