<CFSCHEDULE ACTION="Update" TASK="taskname" OPERATION="HTTPRequest" FILE="filename" PATH="path_to_file" STARTDATE="date" STARTTIME="time" URL="URL" PUBLISH="Yes/No" ENDDATE="date" ENDTIME="time" INTERVAL="seconds" REQUESTTIMEOUT="seconds" USERNAME="username" PASSWORD="password" RESOLVEURL="Yes/No" PROXYSERVER="hostname"> <CFSCHEDULE ACTION="Delete" TASK="TaskName"> <CFSCHEDULE ACTION="Run" TASK="TaskName">
CFSCHEDULE provides a programmatic interface to the ColdFusion scheduling engine. You can run a specified page at scheduled intervals with the option to write out static HTML pages. This allows you to 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.
ColdFusion scheduled events are registered using the ColdFusion Administrator. In addition, execution of CFSCHEDULE can be disabled in the Administrator. Information supplied by the user includes the scheduled ColdFusion page to execute, the time and frequency for executing the page, and if the output from the task should be published. If the output is to be published then a path and file is specified.
The event submission and its success or failure status is written to the \cfusion\log\schedule.log
file.
Required. Valid entries are:
Required. The name of the task to delete, update, or run.
Required when creating tasks with ACTION="Update". Specify the type of operation the scheduler should perform when executing this task. For now only OPERATION="HTTPRequest" is supported for static page generation.
Required with PUBLISH="Yes." A valid filename for the published file.
Required with PUBLISH="Yes." The path location for the published file.
Required when ACTION="Update". The date when scheduling of the task should start.
Required when creating tasks with ACTION="Update". Enter a value in seconds. The time when scheduling of the task should start.
Required when ACTION="Update". The URL to be executed.
Optional. Yes or No. Specifies whether the result should be saved to a file.
Optional. The date when the scheduled task should end.
Optional. The time when the scheduled task should end. Enter a value in seconds.
Required when creating tasks with ACTION="Update". Interval at which task should be scheduled. Can be set in seconds or as Once, Daily, Weekly, Monthly, and Execute. The default interval is one hour and the minimum interval is one minute.
Optional. Customizes the REQUESTTIMEOUT for the task operation. Can be used to extend the default timeout for operations that require more time to execute.
Optional. Username if URL is protected.
Optional. Password if URL is protected.
Optional. Host name or IP address of a proxy server.
Optional. Yes or No. Specifies whether to resolve links in the result page to absolute references.