Windows Server 2008 任务计划程序任务未执行

Windows Server 2008 任务计划程序任务未执行

一段时间以来,Windows 任务计划程序一直存在间歇性问题,我无法解决。我使用任务计划程序运行我编写的 C# 应用程序,该应用程序有各种插件,用于确保生产系统正常运行。

这个任务调度程序本身实际上是一个生产系统,所以我有一个简单的任务,每 8 分钟执行一次,以通知外部监控系统任务调度程序仍然正常运行。如果这个外部服务每 15 分钟至少有一次未能收到“全部清除”消息(我现在不记得确切的数字了),它就会向我们发送消息,告知监控系统已关闭。

过去,我们时不时会收到间歇性的“停机”消息,每次我调查原因时都无法找到任何问题。所以这次我想向 StackOverflow 社区询问,因为看起来我靠自己不太可能有好运。

今天早上 2:32 AM,任务触发(恰好在前一次触发后 8 分钟),但直到 3:28,任务才再次触发。目前,我在事件查看器中看不到任何错误。当我查看任务计划程序日志时,那里也没有错误。但日志如下所示:

Information 6/11/2011 3:28:56 AM    102 Task completed  (2) d6cf2412-269e-48bf-9f40-4a863347baad
Information 6/11/2011 3:28:56 AM    201 Action completed    (2) d6cf2412-269e-48bf-9f40-4a863347baad
Information 6/11/2011 3:28:55 AM    129 Created Task Process    Info    
Information 6/11/2011 3:28:55 AM    200 Action started  (1) d6cf2412-269e-48bf-9f40-4a863347baad
Information 6/11/2011 3:28:55 AM    100 Task Started    (1) d6cf2412-269e-48bf-9f40-4a863347baad
Information 6/11/2011 3:28:55 AM    319 Task Engine received message to start task  (1) 
Information 6/11/2011 3:28:55 AM    107 Task triggered on scheduler Info    d6cf2412-269e-48bf-9f40-4a863347baad
Information 6/11/2011 3:28:15 AM    102 Task completed  (2) b91fe5ce-39ef-42fb-adbe-bd8be012c00a
Information 6/11/2011 3:28:15 AM    201 Action completed    (2) b91fe5ce-39ef-42fb-adbe-bd8be012c00a
Information 6/11/2011 3:28:15 AM    102 Task completed  (2) 556c07dc-2724-4a21-a97e-dc4abd56f94d
Information 6/11/2011 3:28:15 AM    201 Action completed    (2) 556c07dc-2724-4a21-a97e-dc4abd56f94d
Information 6/11/2011 3:28:15 AM    102 Task completed  (2) 79328289-f742-49dd-aa0d-c3d05db50895
Information 6/11/2011 3:28:15 AM    201 Action completed    (2) 79328289-f742-49dd-aa0d-c3d05db50895
Information 6/11/2011 3:28:15 AM    102 Task completed  (2) 19743755-47b6-4b98-9bec-052193be9496
Information 6/11/2011 3:28:15 AM    201 Action completed    (2) 19743755-47b6-4b98-9bec-052193be9496
Information 6/11/2011 3:28:15 AM    102 Task completed  (2) c165754f-e3e6-4176-a327-11f9c06c39a5
Information 6/11/2011 3:28:15 AM    201 Action completed    (2) c165754f-e3e6-4176-a327-11f9c06c39a5
Information 6/11/2011 3:28:15 AM    102 Task completed  (2) 0e62ad3e-1f6e-40c0-9155-19f0108dee22
Information 6/11/2011 3:28:15 AM    201 Action completed    (2) 0e62ad3e-1f6e-40c0-9155-19f0108dee22
Information 6/11/2011 3:28:10 AM    129 Created Task Process    Info    
Information 6/11/2011 3:28:10 AM    200 Action started  (1) 0e62ad3e-1f6e-40c0-9155-19f0108dee22
Information 6/11/2011 3:28:10 AM    129 Created Task Process    Info    
Information 6/11/2011 3:28:10 AM    200 Action started  (1) c165754f-e3e6-4176-a327-11f9c06c39a5
Information 6/11/2011 3:28:10 AM    129 Created Task Process    Info    
Information 6/11/2011 3:28:10 AM    200 Action started  (1) 19743755-47b6-4b98-9bec-052193be9496
Information 6/11/2011 3:28:10 AM    129 Created Task Process    Info    
Information 6/11/2011 3:28:10 AM    200 Action started  (1) 79328289-f742-49dd-aa0d-c3d05db50895
Information 6/11/2011 3:28:10 AM    129 Created Task Process    Info    
Information 6/11/2011 3:28:10 AM    200 Action started  (1) 556c07dc-2724-4a21-a97e-dc4abd56f94d
Information 6/11/2011 3:28:10 AM    129 Created Task Process    Info    
Information 6/11/2011 3:28:10 AM    200 Action started  (1) b91fe5ce-39ef-42fb-adbe-bd8be012c00a
Information 6/11/2011 3:28:10 AM    100 Task Started    (1) 0e62ad3e-1f6e-40c0-9155-19f0108dee22
Information 6/11/2011 3:28:10 AM    319 Task Engine received message to start task  (1) 
Information 6/11/2011 3:28:10 AM    100 Task Started    (1) c165754f-e3e6-4176-a327-11f9c06c39a5
Information 6/11/2011 3:28:10 AM    319 Task Engine received message to start task  (1) 
Information 6/11/2011 3:28:10 AM    100 Task Started    (1) 19743755-47b6-4b98-9bec-052193be9496
Information 6/11/2011 3:28:10 AM    319 Task Engine received message to start task  (1) 
Information 6/11/2011 3:28:10 AM    100 Task Started    (1) 79328289-f742-49dd-aa0d-c3d05db50895
Information 6/11/2011 3:28:10 AM    319 Task Engine received message to start task  (1) 
Information 6/11/2011 3:28:10 AM    100 Task Started    (1) 556c07dc-2724-4a21-a97e-dc4abd56f94d
Information 6/11/2011 3:28:10 AM    319 Task Engine received message to start task  (1) 
Information 6/11/2011 3:28:10 AM    100 Task Started    (1) b91fe5ce-39ef-42fb-adbe-bd8be012c00a
Information 6/11/2011 3:28:10 AM    319 Task Engine received message to start task  (1) 
Information 6/11/2011 3:28:10 AM    107 Task triggered on scheduler Info    0e62ad3e-1f6e-40c0-9155-19f0108dee22
Information 6/11/2011 3:28:10 AM    107 Task triggered on scheduler Info    c165754f-e3e6-4176-a327-11f9c06c39a5
Information 6/11/2011 3:28:10 AM    107 Task triggered on scheduler Info    19743755-47b6-4b98-9bec-052193be9496
Information 6/11/2011 3:28:10 AM    107 Task triggered on scheduler Info    79328289-f742-49dd-aa0d-c3d05db50895
Information 6/11/2011 3:28:10 AM    107 Task triggered on scheduler Info    556c07dc-2724-4a21-a97e-dc4abd56f94d
Information 6/11/2011 3:28:10 AM    107 Task triggered on scheduler Info    b91fe5ce-39ef-42fb-adbe-bd8be012c00a
Information 6/11/2011 2:32:56 AM    102 Task completed  (2) 16e4f2c3-a340-410a-9c14-4bfe0861fdd5
Information 6/11/2011 2:32:56 AM    201 Action completed    (2) 16e4f2c3-a340-410a-9c14-4bfe0861fdd5
Information 6/11/2011 2:32:55 AM    129 Created Task Process    Info    
Information 6/11/2011 2:32:55 AM    200 Action started  (1) 16e4f2c3-a340-410a-9c14-4bfe0861fdd5
Information 6/11/2011 2:32:55 AM    100 Task Started    (1) 16e4f2c3-a340-410a-9c14-4bfe0861fdd5
Information 6/11/2011 2:32:55 AM    319 Task Engine received message to start task  (1) 
Information 6/11/2011 2:32:55 AM    107 Task triggered on scheduler Info    16e4f2c3-a340-410a-9c14-4bfe0861fdd5

似乎有点奇怪。我还有两个其他 C# 应用程序,它们使用任务计划程序每小时运行并检查一些内容。如果我查看它们的历史记录,我可以看到它们也没有在凌晨 3 点执行!它们也都等到 3:28 才启动。

如果我查看事件查看器中的“已完成的任务”,它会显示只有一项任务能够在凌晨 2:32 至凌晨 3:28 之间运行。该任务是“\Microsoft\Windows\RAC\RACAgent”

它看起来是这样的:

Information 6/11/2011 3:18:09 AM    102 Task completed  (2) 00c53a85-ba20-4666-80db-fbbe2492c0ad
Information 6/11/2011 3:18:09 AM    201 Action completed    (2) 00c53a85-ba20-4666-80db-fbbe2492c0ad
Information 6/11/2011 3:18:08 AM    129 Created Task Process    Info    
Information 6/11/2011 3:18:08 AM    200 Action started  (1) 00c53a85-ba20-4666-80db-fbbe2492c0ad
Information 6/11/2011 3:18:08 AM    100 Task Started    (1) 00c53a85-ba20-4666-80db-fbbe2492c0ad
Information 6/11/2011 3:18:08 AM    319 Task Engine received message to start task  (1) 

我非常感谢任何人提出的想法。

答案1

您的计划任务是否在 hyper-v 虚拟服务器上运行?

它可能已被其 hyper-v 主机暂停以进行维护(备份、缺少共享资源......)。

答案2

您在这段时间内是否正在运行任何备份?我的系统正在运行系统范围的备份,并且计划的任务在备份完成之前不会完成(这是任务实际运行的时间)。

相关内容