Windows 任务计划程序“忽略启动请求,实例已在运行" [英] Windows Task Scheduler "Launch request ignored, instance already running"

查看:125
本文介绍了Windows 任务计划程序“忽略启动请求,实例已在运行"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个每天每 5 分钟触发一次的任务.但最近,我发现任务总是在上午 8:00 到 9:00 之间失败,但所有其他任务(有些每 1 分钟触发一次)都没有任何问题.所以我不知道出了什么问题.

I have a task which triggers every 5 min every day. But recently, I found the task always failed between only 8:00 am to 9:00 am but all the other tasks (some trigger every 1 min) do not have any problem. So I have no idea what's wrong.

从下面的日志中,我可以看到在 8:20 有一个触发器,它最终在 8:30 终止.实际上,该任务非常简单,只需不到 1 分钟即可完成.所以我不知道为什么会有启动请求被忽略,实例已经在运行"警告.

From log below, I can see there was a trigger at 8:20 and it finally terminated at 8:30. Actually, the task is quite simple to take less than 1 min to finish. So I have no idea why there are "Launch request ignored, instance already running" warnings.

推荐答案

作为计划任务运行的任务可能不会终止.这是任务管理器的错误还是脚本的错误是未知的,但两者都可能是这里的错误.例如,如果批处理文件包含暂停语句,则批处理文件需要按键继续.任务调度程序永远不会发送它,脚本永远不会完成.

It can happen that a task that runs as scheduled task simply does not terminate. Whether this is a fault of task manager or the script is unknown, but both can be at fault here. For example, if the batch file contains a pause statement, the batch file expects a keypress to continue. The task scheduler will never send it, and this the script never finishes.

尝试更改任务计划程序中的几个选项.在属性窗口的底部,您会发现:

Try changing few options in task scheduler. At the bottom of the property window, you will find:

'If the task is already running, the following applies" make it "Do start a 
new intstance".

Change this to "Run a new instance in parallel"

这应该可以解决您的问题.

This should solve your problem.

这篇关于Windows 任务计划程序“忽略启动请求,实例已在运行"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆