feat: execute node python version
This commit is contained in:
@@ -6,6 +6,7 @@ import {
|
||||
type ScheduleRunSummary,
|
||||
} from "../../services/api";
|
||||
import { EMPTY_SCHEDULE_FORM, EMPTY_NODE_FORM } from "./constants";
|
||||
import type { NodeForm } from "./state/schedulesStore";
|
||||
|
||||
export function formatTime(value: string | null): string {
|
||||
if (!value) return "尚未执行";
|
||||
@@ -82,7 +83,7 @@ export function scheduleToForm(schedule: Schedule) {
|
||||
};
|
||||
}
|
||||
|
||||
export function nodeToForm(node: ScheduleNode) {
|
||||
export function nodeToForm(node: ScheduleNode): NodeForm {
|
||||
return {
|
||||
nodeName: node.node_name,
|
||||
timeoutSeconds: String(node.timeout_seconds),
|
||||
@@ -90,6 +91,7 @@ export function nodeToForm(node: ScheduleNode) {
|
||||
retryIntervalSec: String(node.retry_interval_sec),
|
||||
argumentsJson: JSON.stringify(node.arguments_json ?? {}, null, 2),
|
||||
envRefsJson: JSON.stringify(node.env_refs_json ?? {}, null, 2),
|
||||
pythonVersion: node.python_version ?? "3.12",
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user