Hi
I want to schedule a task in Coldfusion. I have tried scheduling it using code and also using cfide but not able to do it. I have no clue what could be the problem.
My code is like this:
<cfscript>
End_Time = DateAdd("y",1,now());
Start_Time = now();
schedulepath = "StartDate = DateFormat(Start_Time, "mm/dd/yyyy"
;
StartTime = TimeFormat(Start_Time, "h:hhtt"
;
EndDate = DateFormat(End_Time, "mm/dd/yyyy"
;
EndTime = "5:30PM";
</cfscript>
<CFSCHEDULE
ACTION = "UPDATE"
TASK = "test_task"
OPERATION = "HTTPRequest"
URL = "#schedulepath#"
STARTDATE = "#StartDate#"
STARTTIME = "#StartTime#"
interval = "120"
ENDDATE = "#EndDate#"
ENDTIME = "#EndTime#"
RESOLVEURL = "Yes"
REQUESTTIMEOUT= "600">
I have also tried to schedule the task once and also given the path as
I have also created a task using cfide.
I have checked logs. The scheduler.log has 3 entries:
...Task initiated
...Task completed
Status code for task: 'test_task' is '401 Unauthorized'
All CF services are on.
Any help is appreciated
Thanks
I want to schedule a task in Coldfusion. I have tried scheduling it using code and also using cfide but not able to do it. I have no clue what could be the problem.
My code is like this:
<cfscript>
End_Time = DateAdd("y",1,now());
Start_Time = now();
schedulepath = "StartDate = DateFormat(Start_Time, "mm/dd/yyyy"
StartTime = TimeFormat(Start_Time, "h:hhtt"
EndDate = DateFormat(End_Time, "mm/dd/yyyy"
EndTime = "5:30PM";
</cfscript>
<CFSCHEDULE
ACTION = "UPDATE"
TASK = "test_task"
OPERATION = "HTTPRequest"
URL = "#schedulepath#"
STARTDATE = "#StartDate#"
STARTTIME = "#StartTime#"
interval = "120"
ENDDATE = "#EndDate#"
ENDTIME = "#EndTime#"
RESOLVEURL = "Yes"
REQUESTTIMEOUT= "600">
I have also tried to schedule the task once and also given the path as
I have also created a task using cfide.
I have checked logs. The scheduler.log has 3 entries:
...Task initiated
...Task completed
Status code for task: 'test_task' is '401 Unauthorized'
All CF services are on.
Any help is appreciated
Thanks