parent
bf51dca5d0
commit
37121866e3
|
@ -12,7 +12,7 @@
|
|||
<ItemGroup>
|
||||
<PackageReference Include="Bootstrap.Security.Mvc" Version="2.2.15-preview-1" />
|
||||
<PackageReference Include="Longbow.Configuration" Version="2.2.7" />
|
||||
<PackageReference Include="Longbow.Tasks" Version="1.9.0" />
|
||||
<PackageReference Include="Longbow.Tasks" Version="1.10.0-preview-2" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.App" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.Mvc.Versioning" Version="3.1.6" />
|
||||
<PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="2.2.3" PrivateAssets="All" />
|
||||
|
|
|
@ -22,7 +22,7 @@ namespace Bootstrap.Admin.Controllers.Api
|
|||
[HttpGet]
|
||||
public async Task<ActionResult> Get([FromQuery]string name, [FromServices]IHubContext<TaskLogHub> hub)
|
||||
{
|
||||
var sche = TaskServicesManager.GetOrAdd(name);
|
||||
var sche = TaskServicesManager.Get(name);
|
||||
sche.Triggers.First().PulseCallback = t => SendTaskLog(sche, name, hub).ConfigureAwait(false);
|
||||
await SendTaskLog(sche, name, hub).ConfigureAwait(false);
|
||||
return Ok(true);
|
||||
|
|
|
@ -54,6 +54,13 @@
|
|||
"Sentry": {
|
||||
"Dsn": "https://70bdfff562e84fa7b9a43d65924ab9ad@sentry.io/1469396"
|
||||
},
|
||||
"TaskServicesOptions": {
|
||||
"ShutdownTimeout": "00:00:05",
|
||||
"FileStorageOptions": {
|
||||
"Enabled": true,
|
||||
"Folder": "TaskStorage"
|
||||
}
|
||||
},
|
||||
"LongbowCache": {
|
||||
"Enabled": true,
|
||||
"CorsItems": [
|
||||
|
|
Loading…
Reference in New Issue