fix task v1 rerun shell command (#3893)
This commit is contained in:
@@ -3,6 +3,7 @@ import {
|
||||
CreateTaskRequest,
|
||||
OrganizationApiResponse,
|
||||
ProxyLocation,
|
||||
RunEngine,
|
||||
} from "@/api/types";
|
||||
import { AutoResizingTextarea } from "@/components/AutoResizingTextarea/AutoResizingTextarea";
|
||||
import { Button } from "@/components/ui/button";
|
||||
@@ -775,7 +776,10 @@ function CreateNewTaskForm({ initialValues }: Props) {
|
||||
return {
|
||||
method: "POST",
|
||||
url: `${runsApiBaseUrl}/run/tasks`,
|
||||
body: buildTaskRunPayload(createTaskRequestObject(formValues)),
|
||||
body: buildTaskRunPayload(
|
||||
createTaskRequestObject(formValues),
|
||||
RunEngine.SkyvernV1,
|
||||
),
|
||||
headers,
|
||||
} satisfies ApiCommandOptions;
|
||||
}}
|
||||
|
||||
@@ -36,6 +36,7 @@ import {
|
||||
CreateTaskRequest,
|
||||
OrganizationApiResponse,
|
||||
ProxyLocation,
|
||||
RunEngine,
|
||||
} from "@/api/types";
|
||||
import { ProxySelector } from "@/components/ProxySelector";
|
||||
import { TestWebhookDialog } from "@/components/TestWebhookDialog";
|
||||
@@ -786,7 +787,10 @@ function SavedTaskForm({ initialValues }: Props) {
|
||||
return {
|
||||
method: "POST",
|
||||
url: `${runsApiBaseUrl}/run/tasks`,
|
||||
body: buildTaskRunPayload(createTaskRequestObject(formValues)),
|
||||
body: buildTaskRunPayload(
|
||||
createTaskRequestObject(formValues),
|
||||
RunEngine.SkyvernV1,
|
||||
),
|
||||
headers,
|
||||
} satisfies ApiCommandOptions;
|
||||
}}
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import { getClient } from "@/api/AxiosClient";
|
||||
import { useState } from "react";
|
||||
import {
|
||||
RunEngine,
|
||||
Status,
|
||||
TaskApiResponse,
|
||||
WorkflowRunStatusApiResponse,
|
||||
@@ -227,7 +228,10 @@ function TaskDetails() {
|
||||
return {
|
||||
method: "POST",
|
||||
url: `${runsApiBaseUrl}/run/tasks`,
|
||||
body: buildTaskRunPayload(createTaskRequestObject(task)),
|
||||
body: buildTaskRunPayload(
|
||||
createTaskRequestObject(task),
|
||||
RunEngine.SkyvernV1,
|
||||
),
|
||||
headers,
|
||||
} satisfies ApiCommandOptions;
|
||||
}}
|
||||
|
||||
Reference in New Issue
Block a user