优化部分代码

pull/1/head
wangshaoming 7 years ago
parent a806df20dd
commit 77e894d6eb
No known key found for this signature in database
GPG Key ID: 29F5223B4DB362B5
  1. 6
      samples/ASPNetCoreExecutor/ASPNetCoreExecutor.csproj
  2. 2
      samples/ASPNetCoreExecutor/appsettings.json
  3. 1
      src/DotXxlJob.Core/ExecutorRegistry.cs

@ -19,4 +19,10 @@
<_ContentIncludedByDefault Remove="Properties\launchSettings.json" />
</ItemGroup>
<ItemGroup>
<Content Update="appsettings.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
</ItemGroup>
</Project>

@ -9,7 +9,7 @@
"appName": "xxl-job-executor-dotnet",
"specialBindAddress": "127.0.0.1",
"port": 5000,
"autoRegistry":true,
"autoRegistry":false,
"accessToken": "",
"logRetentionDays": 30
}

@ -58,6 +58,7 @@ namespace DotXxlJob.Core
catch (Exception ex)
{
errorTimes++;
await Task.Delay(Constants.RegistryInterval, cancellationToken);
this._logger.LogError(ex,"registry error:{0},{1} Times",ex.Message,errorTimes);
}
}

Loading…
Cancel
Save