chore: initial commit
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
import type {WorkflowField} from '../../types/bot/workflow/metadata.ts';
|
||||
import {describe} from './metadata.ts';
|
||||
|
||||
export const node_fields: WorkflowField[] = [{
|
||||
name: 'timeout_ms', type: 'number', required: false, default: 30_000, integer: true, min: 1, max: 2_147_483_647,
|
||||
i18n: describe('节点超时', '节点最长执行时间,单位毫秒;超时会请求取消并等待操作清理。'),
|
||||
}];
|
||||
export const policy_fields: WorkflowField[] = [
|
||||
{name: 'max_concurrent_runs', type: 'number', required: false, default: 1, integer: true, min: 1, max: 256,
|
||||
i18n: describe('并行实例上限', '同一工作流同时运行的最大实例数,还受 bot 总并行上限限制。')},
|
||||
{name: 'on_busy', type: 'select', required: false, default: 'skip',
|
||||
i18n: describe('繁忙时策略', '达到 bot 总并行上限或本工作流实例上限时如何处理新触发。'), options: [
|
||||
{value: 'skip', i18n: describe('忽略', '直接忽略本次触发。')},
|
||||
{value: 'queue', i18n: describe('排队', '在等待队列未满时保存触发,空出名额后执行。')},
|
||||
]},
|
||||
{name: 'max_queue', type: 'number', required: false, default: 10, integer: true, min: 0, max: 1000,
|
||||
i18n: describe('等待队列上限', '本工作流最多保存的等待触发数量,0 表示不保存。')},
|
||||
{name: 'max_steps', type: 'number', required: false, default: 1000, integer: true, min: 1, max: 100000,
|
||||
i18n: describe('最大执行步数', '一次运行内所有分支累计执行的节点数上限。')},
|
||||
{name: 'timeout_ms', type: 'number', required: false, default: 60_000, integer: true, min: 1, max: 2_147_483_647,
|
||||
i18n: describe('运行超时', '从实际启动开始计算的整次运行时限,单位毫秒。')},
|
||||
];
|
||||
Reference in New Issue
Block a user