ColdFusion 8 调度程序不重新调度任务

发布于 2024-07-21 06:27:02 字数 597 浏览 6 评论 0原文

我刚刚在 Windows 2000 机器上全新安装了 CF8。 我有一个计划任务需要在这台机器上每 15 分钟运行一次,而该机器几乎不做其他事情。

该任务通过 CF admin 正常设置,但由于某种原因,当任务需要大约 5 分钟才能运行时,它将正常完成(我可以从调试输出和 cfstat 中看到这一点),但调度程序不会重新安排任务。

调度日志显示任务开始执行,但没有显示它被重新调度的条目。 例如:

[ProcessRecords] Executing at Wed May 20 10:30:00 BST 2009 

我的服务器超时了。 我在 CF 管理中没有超时,并且此特定脚本具有 标记集。 控制台日志记录没有异常。 控制台日志记录的最后一位是我的 .cfm 模板中的最后一个调试语句。

我确实注意到,运行时间较短(例如不到一分钟)的任务将照常重新安排。

以前有人遇到过这样的问题吗?

我很困惑。 任何和所有答复表示赞赏!

干杯, 夏兰

I have just done a clean install of CF8 on a Windows 2000 machine. I have a scheduled task I need to run every 15 minutes on this machine, and the machine does little else.

The task is set up as normal through CF admin, but for some reason, when the task takes about 5 minutes to run it will complete fine (I can see this from debug output and from cfstat) but the scheduler will not reschedule the task.

The scheduling log shows that the task started to execute, but not entry that it was rescheduled. Eg:

[ProcessRecords] Executing at Wed May 20 10:30:00 BST 2009 

I have been over my server timeouts. I have NO timeout in CF admin and this particular script has a <cfsetting requesttimeout="43200" /> tag set. There are no exceptions in the console logging. The last bit of console logging is the very last debug statement in my .cfm template.

I do notice that task that run in a shorter time, say for example under a minute, will reschedule as normal.

Has anyone come across a problem like this before?

I'm baffled. Any and all replies are appreciated!

Cheers,
Ciaran

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

吃素的狼 2024-07-28 06:27:02

不是没有原因,但我从来没有在 cf8 中见过这样的事情。 您确定安装了最新的修补程序和 jvm 吗? 这可能是 cf8 中的问题,但已在 8.01 中修复。

cf8.01 修补程序 2

cf8.01 的所有修补程序和更新列表

cf8 的修补程序 3

cf8 的所有修补程序和更新列表

最新 jvm

jvm 升级说明

如果您怀疑这是导致问题的未捕获的异常,那么我是否建议记录该过程的部分内容。 举个例子,我的计划任务也遇到了类似的问题,它会无缘无故地触底(尽管从未遇到过重新安排问题)。 我最终诊断问题的方法是使用 cflog 写出进程完成时的部分内容。 这个特定的任务大约需要 4 分钟才能完成,但包含了大约 200 个部分(这是针对一群客户的群发电子邮件)。

我记录了该部分开始和完成的时间以及它所花费的时间。 通过这样做,我可以看到整个过程中哪些部分会出错,并知道我的注意力应该集中在哪里。

not for nothing, but i've never seen anything like this with cf8. are you sure that you have the latest hotfix and jvm installed? this might have been something in cf8 that was fixed in 8.01.

hotfix 2 for cf8.01

list of all hotfixes and updates for cf8.01

hotfix 3 for cf8

list of all hotfixes and updates for cf8

latest jvm

upgrade instruction for jvm

If you suspect that it's an uncaught exception causing the issue, then might I suggest logging portions of the process. Case in point, I had a similar problem with a scheduled task where it would just bottom out for no reason (never had the reschedule problem though). What I ended up doing to diagnose the problem was use cflog to write out portions of the process as they completed. This particular task too about 4 minutes to complete but ran through about 200 portions (it was a mass emailer for a bunch of clients).

I logged the when the portion started and completed along with how log it took. By doing so, i could see what portion would trip up the whole process and knew where to focus my attention.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文