>Are you aware that you can schedule tasks using a nice GUI from inside
>of ColdFusion Administrator?
It's a centralized server so I don't have access to the Administrator.
>The problem might be related to setting the start time to now(), since
>the CF scheduler is checked for new jobs to process on an interval
>basis, not on a continual basis. Try scheduling the execution time for
>20 minutes in the future to see if those emails go out.
>
>Scheduling a task to run now isn't much of a schedule. Schedule
>implies that it happens in the future. Why not run the email code
>inline?
It needs to send an email out daily. I want it to start now and then each day
send out another. I had it set to 60 seconds to test it as I didn't want to
wait a day to find that I did it wrong and it failed. I've changed that to 120
seconds and it didn't work. I don't understand why there would be a problem
with starting now() though. However, I changed the start_time to this:
<cfset start_date = createDate(year(now()),month(now()),day(now()))>
<cfset start_time = createTime(hour(now()),minute(now())+10,second(now()))>
<cfschedule
action="update"
task="facilities_daily_notification"
interval="120"
operation="httprequest"
startdate="#start_date#"
starttime="#start_time#"
url="http://sph.umd.edu/home/facilities_request/email/daily_notifcation.cfm"
>
It doesn't seem to have worked. Is there a problem with the code? I've asked
and cfschedule is enabled.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know
on the House of Fusion mailing lists
Archive:
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:332335
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm