feat(sj_1.0.0): 定时任务和工作流新增客户端执行异常告警场景

This commit is contained in:
opensnail 2024-05-08 15:35:44 +08:00
parent 503ae4918e
commit 949134ae8d
5 changed files with 16 additions and 16 deletions

View File

@ -79,14 +79,14 @@ export const retryNotifyScene: Record<Api.NotifyConfig.RetryNotifyScene, App.I18
export const retryNotifySceneOptions = transformRecordToNumberOption(retryNotifyScene); export const retryNotifySceneOptions = transformRecordToNumberOption(retryNotifyScene);
export const jobNotifyScene: Record<Api.NotifyConfig.JobNotifyScene, App.I18n.I18nKey> = { export const jobNotifyScene: Record<Api.NotifyConfig.JobNotifyScene, App.I18n.I18nKey> = {
1: 'page.notifyConfig.jobNotifyScene.jobTaskError' 1: 'page.notifyConfig.jobNotifyScene.jobTaskError',
2: 'page.notifyConfig.jobNotifyScene.jobClientError'
}; };
export const jobNotifySceneOptions = transformRecordToOption(jobNotifyScene); export const jobNotifySceneOptions = transformRecordToOption(jobNotifyScene);
export const workflowNotifyScene: Record<Api.NotifyConfig.WorkflowNotifyScene, App.I18n.I18nKey> = { export const workflowNotifyScene: Record<Api.NotifyConfig.WorkflowNotifyScene, App.I18n.I18nKey> = {
100: 'page.notifyConfig.workflowNotifyScene.workTaskError', 2: 'page.notifyConfig.workflowNotifyScene.workflowClientError',
101: 'page.notifyConfig.workflowNotifyScene.workflowTaskCallbackError', 100: 'page.notifyConfig.workflowNotifyScene.workTaskError'
102: 'page.notifyConfig.workflowNotifyScene.workflowTaskDecisionError'
}; };
export const workflowNotifySceneOptions = transformRecordToOption(workflowNotifyScene); export const workflowNotifySceneOptions = transformRecordToOption(workflowNotifyScene);

View File

@ -725,12 +725,12 @@ const local: App.I18n.Schema = {
retryTaskEnterDeadLetter: 'Retry task enter dead letter' retryTaskEnterDeadLetter: 'Retry task enter dead letter'
}, },
jobNotifyScene: { jobNotifyScene: {
jobTaskError: 'Task execute error' jobTaskError: 'Task execute error',
jobClientError: 'Client execute error'
}, },
workflowNotifyScene: { workflowNotifyScene: {
workTaskError: 'Workflow task execute error', workTaskError: 'Workflow task execute error',
workflowTaskCallbackError: 'Callback task execute error', workflowClientError: 'Client execute error'
workflowTaskDecisionError: 'Workflow task decision error'
}, },
notifyRecipient: 'Notify recipient', notifyRecipient: 'Notify recipient',
rateLimiterStatus: 'Rate limiter status', rateLimiterStatus: 'Rate limiter status',

View File

@ -721,12 +721,12 @@ const local: App.I18n.Schema = {
retryTaskEnterDeadLetter: '任务重试失败进入死信队列' retryTaskEnterDeadLetter: '任务重试失败进入死信队列'
}, },
jobNotifyScene: { jobNotifyScene: {
jobTaskError: '任务执行失败' jobTaskError: '任务执行失败',
jobClientError: '客户端执行失败'
}, },
workflowNotifyScene: { workflowNotifyScene: {
workTaskError: '工作流任务执行失败', workTaskError: '工作流任务执行失败',
workflowTaskCallbackError: '工作流回调任务执行失败', workflowClientError: '客户端执行失败'
workflowTaskDecisionError: '工作流判定节点执行失败'
}, },
notifyRecipient: '通知人信息', notifyRecipient: '通知人信息',
rateLimiterStatus: '限流开关', rateLimiterStatus: '限流开关',

View File

@ -582,11 +582,11 @@ declare namespace Api {
/** 1、场景重试数量超过阈值 2、场景重试失败数量超过阈值 3、客户端上报失败 4、客户端组件异常 5、任务重试失败数量超过阈值 6、任务重试失败进入死信队列 */ /** 1、场景重试数量超过阈值 2、场景重试失败数量超过阈值 3、客户端上报失败 4、客户端组件异常 5、任务重试失败数量超过阈值 6、任务重试失败进入死信队列 */
type RetryNotifyScene = 1 | 2 | 3 | 4 | 5 | 6; type RetryNotifyScene = 1 | 2 | 3 | 4 | 5 | 6;
/** 1、任务执行失败 */ /** 1、任务执行失败 2、客户端执行失败 */
type JobNotifyScene = 1; type JobNotifyScene = 1 | 2;
/** 100、工作流任务执行失败 101、回调节点执行失败 102、判定节点执行失败 */ /** 2、 客户端执行失败 100、工作流任务执行失败 */
type WorkflowNotifyScene = 100 | 101 | 102; type WorkflowNotifyScene = 2 | 100;
} }
/** /**

View File

@ -873,11 +873,11 @@ declare namespace App {
}; };
jobNotifyScene: { jobNotifyScene: {
jobTaskError: string; jobTaskError: string;
jobClientError: string;
}; };
workflowNotifyScene: { workflowNotifyScene: {
workTaskError: string; workTaskError: string;
workflowTaskCallbackError: string; workflowClientError: string;
workflowTaskDecisionError: string;
}; };
notifyRecipient: string; notifyRecipient: string;
rateLimiterStatus: string; rateLimiterStatus: string;