feat: add workflow parallel depth limit configuration (#11460)
Signed-off-by: -LAN- <laipz8200@outlook.com> Co-authored-by: zxhlyh <jasonapring2015@outlook.com>
This commit is contained in:
parent
7b03a0316d
commit
dacd457478
10 changed files with 52 additions and 5 deletions
12
web/service/use-workflow.ts
Normal file
12
web/service/use-workflow.ts
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
import { useQuery } from '@tanstack/react-query'
|
||||
import { get } from './base'
|
||||
import type { WorkflowConfigResponse } from '@/types/workflow'
|
||||
|
||||
const NAME_SPACE = 'workflow'
|
||||
|
||||
export const useWorkflowConfig = (appId: string) => {
|
||||
return useQuery({
|
||||
queryKey: [NAME_SPACE, 'config', appId],
|
||||
queryFn: () => get<WorkflowConfigResponse>(`/apps/${appId}/workflows/draft/config`),
|
||||
})
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue