Commit 2d0561a5 by 泽锋 李

fix

parent 73059a2d
...@@ -49,6 +49,8 @@ namespace ResetOutofstock ...@@ -49,6 +49,8 @@ namespace ResetOutofstock
Task.Factory.StartNew(() => Task.Factory.StartNew(() =>
{ {
while (true)
{
try try
{ {
Console.WriteLine($"开始 同步调拨 采购临时数据 ,线程Id:{Thread.CurrentThread.ManagedThreadId}{DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")}"); Console.WriteLine($"开始 同步调拨 采购临时数据 ,线程Id:{Thread.CurrentThread.ManagedThreadId}{DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")}");
...@@ -61,6 +63,8 @@ namespace ResetOutofstock ...@@ -61,6 +63,8 @@ namespace ResetOutofstock
Console.WriteLine(ex.StackTrace); Console.WriteLine(ex.StackTrace);
} }
Thread.Sleep(10 * 60 * 1000); Thread.Sleep(10 * 60 * 1000);
}
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment