Skip to content

Commit 4a872e0

Browse files
committed
use same default const
1 parent f893132 commit 4a872e0

File tree

1 file changed

+2
-2
lines changed
  • x-pack/platform/plugins/shared/onechat/server/services/tools/tool_types/workflow

1 file changed

+2
-2
lines changed

x-pack/platform/plugins/shared/onechat/server/services/tools/tool_types/workflow/execute_workflow.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import type { KibanaRequest } from '@kbn/core-http-server';
99
import { ExecutionStatus as WorkflowExecutionStatus } from '@kbn/workflows/types/v1';
1010
import type { WorkflowsServerPluginSetup } from '@kbn/workflows-management-plugin/server';
1111
import type { ToolHandlerResult } from '@kbn/onechat-server/tools';
12+
import { WORKFLOW_WAIT_FOR_DEFAULT } from '@kbn/onechat-common/tools/types/workflow';
1213
import {
1314
getExecutionState,
1415
type WorkflowExecutionState,
@@ -17,7 +18,6 @@ import { errorResult, otherResult } from '@kbn/onechat-genai-utils/tools/utils/r
1718

1819
type WorkflowApi = WorkflowsServerPluginSetup['management'];
1920

20-
const DEFAULT_WAIT_FOR = 60;
2121
const DEFAULT_INITIAL_WAIT = 1;
2222
const DEFAULT_CHECK_INTERVAL = 2.5;
2323

@@ -29,7 +29,7 @@ export const executeWorkflow = async ({
2929
request,
3030
spaceId,
3131
workflowApi,
32-
waitFor = DEFAULT_WAIT_FOR,
32+
waitFor = WORKFLOW_WAIT_FOR_DEFAULT,
3333
initialWait = DEFAULT_INITIAL_WAIT,
3434
checkInterval = DEFAULT_CHECK_INTERVAL,
3535
}: {

0 commit comments

Comments
 (0)