我有一个批处理文件,它被设置为在Windows Server 2008 SP2上作为计划任务运行。
批处理文件的内容如下:
cscript ".\Scripts\ProcessImport.wsf" > .\Logs\Import.log
任务计划在每天02:00和16:30运行。 02:00运行总是延迟至少几个小时,但16:30运行总是按时开始。
我已删除并重新创建了该任务,但问题仍然存在。
已选择的计划任务设置为:
当时服务器上没有其他任何东西在运行,但它仍然被延迟。
之前是否有人遇到类似的问题并修复过它?
这是我的任务:
"HostName": ""
"TaskName": "\RunETL_2am"
"Next Run Time": "3/02/2018 2:00:00 AM"
"Status": "Ready"
"Logon Mode": "Interactive/Background"
"Last Run Time": "2/02/2018 3:31:44 AM"
"Last Result": "0"
"Author": ""
"Task To Run": "Multiple actions"
"Start In": "Multiple actions"
"Comment": "Runs all three ETLs Export, Transform, Load in single job. The Transform and Load scripts/processes are built to wait for the previous job to finish before they start doing anything."
"Scheduled Task State": "Enabled"
"Idle Time": "Disabled"
"Power Management": "Stop On Battery Mode, No Start On Batteries"
"Run As": "*"
"Delete Task If Not Rescheduled": "Enabled"
"Stop Task If Runs X Hours and X Mins": "72:00:00"
"Schedule": "Scheduling data is not available in this format."
"Schedule Type": "Daily "
"Start Time": "2:00:00 AM"
"Start Date": "31/01/2018"
"End Date": "N/A"
"Days": "Every 1 day(s)"
"Months": "N/A"
"Repeat: Every": "Disabled"
"Repeat: Until: Time": "Disabled"
"Repa Until: Duration": "Disabled"
"Repeat: Stop If Still Running": "Disabled"