Browse Source

fix: add a node and tenant ID to a storage job

pull/552/head
cKey 4 years ago
parent
commit
a0a1aa47bb
  1. 4
      aspnet-core/modules/task-management/LINGYUN.Abp.TaskManagement.Domain/LINGYUN/Abp/TaskManagement/BackgroundJobStore.cs
  2. 1
      aspnet-core/modules/webhooks/LINGYUN.Abp.WebhooksManagement.Application/LINGYUN/Abp/WebhooksManagement/WebhookSendRecordAppService.cs

4
aspnet-core/modules/task-management/LINGYUN.Abp.TaskManagement.Domain/LINGYUN/Abp/TaskManagement/BackgroundJobStore.cs

@ -85,7 +85,9 @@ public class BackgroundJobStore : IJobStore, ITransientDependency
jobInfo.Priority,
jobInfo.Source,
jobInfo.MaxCount,
jobInfo.MaxTryCount)
jobInfo.MaxTryCount,
jobInfo.NodeName,
jobInfo.TenantId)
{
IsEnabled = true,
TriggerCount = jobInfo.TriggerCount,

1
aspnet-core/modules/webhooks/LINGYUN.Abp.WebhooksManagement.Application/LINGYUN/Abp/WebhooksManagement/WebhookSendRecordAppService.cs

@ -78,6 +78,7 @@ public class WebhookSendRecordAppService : WebhooksManagementAppServiceBase, IWe
Data = sendEvent.Data,
Headers = subscription.GetWebhookHeaders(),
Secret = subscription.Secret,
TryOnce = true,
});
}
}

Loading…
Cancel
Save