portal entry

select a category, or use search below
(searches all categories and all time range)
Title:

Is there a way to define scheduled task execution time to the specific seconds?

| View in Portal
September 12, 2019 03:43:01 PM GMT
2 Comments
<p>Hi All, Is there a way to define scheduled task execution time to the specific seconds? The idea is to have multiple tasks executing at the same interval, but the time of execution is spread out. Currently, I have 3 different scheduled tasks that execute every 30 seconds. Each task takes the result of the previous task to create an outcome. All 3 tasks will execute bang on the minute/half minute (ie, :00 or :30) For example: 1st task executes […]</p>
<p>The post <a rel="nofollow" href="https://coldfusion.adobe.com/2019/09/way-define-scheduled-task-execution-time-specific-seconds/">Is there a way to define scheduled task execution time to the specific seconds?</a> appeared first on <a rel="nofollow" href="https://coldfusion.adobe.com">ColdFusion</a>.</p>
Labels: ColdFusion, Question, Scheduler, 11, question, scheduler

Comments:

<p>You can schedule each Start Time to be 10 seconds apart (12:00:00,12:00:10,12:00:20) and repeat every 30 seconds.</p><p>Wouldn’t it be better to chain the tasks together programmatically so on completion of Task 1, it calls Task 2, and completion of Task 2, it calls Task 3?  Then you’d only need to schedule Task 1 to repeat every 30 seconds, starting at 12:00:00 and your final result could be ready much quicker.</p><p> </p><p> </p>
Comment by Hemi345
2290 | September 16, 2019 08:46:43 PM GMT
Tagging onto what <a href="https://coldfusion.adobe.com/profile/Hemi345">Hemi345</a> suggested, the `<cfschedule />` has an `onComplete` attribute you can use to chain tasks which would probably give you much more reliable results.
Comment by chrisg57685480
2292 | September 17, 2019 04:57:31 PM GMT