feat: execute node python version

This commit is contained in:
tao.chen
2026-08-11 19:00:55 +08:00
parent 38cd06ee7a
commit e80cbbd81c
5 changed files with 56 additions and 22 deletions
+3 -1
View File
@@ -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",
};
}