Solved

cfschedule for intervals of 2 weeks

Posted on 2004-09-10
3
342 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
3 Comments
 
LVL 36

Accepted Solution

by:
Zyloch earned 500 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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

757 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now