?
Solved

cfschedule for intervals of 2 weeks

Posted on 2004-09-10
3
Medium Priority
?
353 Views
Last Modified: 2013-12-24
Anyone know of how to use cfschedule to launch a task on an interval of every 2 weeks. The cfschedule tag only lists daily, weekly, monthly and x seconds. I've tried using 1209600 seconds but am suspicious that this will not work - hoping to find out before 2 weeks.

It's important I resolve how to do this before 2 weeks anyway - for a client.

My application infrastructure for scheduling tasks is all built around sending the interval to the CF scheduler, so I'm not looking for a completely manual scheduler - I want a solution to using CFSCHEDULE.

0
Comment
Question by:451ls
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 36

Accepted Solution

by:
Zyloch earned 2000 total points
ID: 12033120
Hi

Yes, I do believe 1209600 should work. Of course, you can try it then change the clock on your computer and see if that works.

Regards,
Zyloch
0
 
LVL 21

Expert Comment

by:pinaldave
ID: 12034694
Hello 451Ls,
Well once our client wanted to do similar kind of task every other day.
What we did was that we ran the cfschedul every day but we put the condition over the task that
<cfif today is even day>
do this
<cfelseif today is odd>
just do not hing
</cfif>

Regards,
---Pinal
0
 

Author Comment

by:451ls
ID: 12039118
Good suggestion, Zyloch - hadn't thought of changing the clock. I did and amazingly it worked. I guess this confirms that the CF Admin interface arbitrarily imposes the restriction on numbers of seconds greater than a day.

Documentation is very poor here and there is no indication of the maximum number of seconds allowed.

I could have written special logic as Pinal suggests, but this would have been ugly since I would have to calculate whether the start week was odd or even and then ignore doing anything if my week (upon executing) was the opposite.
0

Featured Post

Get real performance insights from real users

Key features:
- Total Pages Views and Load times
- Top Pages Viewed and Load Times
- Real Time Site Page Build Performance
- Users’ Browser and Platform Performance
- Geographic User Breakdown
- And more

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever sent email via ColdFusion and thought of tracking this mail to capture the exact date and time when the message was opened ?  If yes, then this article is for you ! First we need a table user_email with columns user_id , email , sub…
If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses
Course of the Month13 days, 13 hours left to enroll

801 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question