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
@@ -1,15 +1,7 @@
import { type ScheduleNode } from "../../services/api";
import Icon from "../../components/common/Icon";
import { shortHash } from "./utils";
type NodeForm = {
nodeName: string;
timeoutSeconds: string;
retryCount: string;
retryIntervalSec: string;
argumentsJson: string;
envRefsJson: string;
};
import { PYTHON_VERSION_OPTIONS, type NodeForm } from "./state/schedulesStore";
export function NodeInspector({
node,
@@ -88,18 +80,36 @@ export function NodeInspector({
/>
</label>
</div>
<label>
<span></span>
<input
type="number"
min="0"
value={form.retryIntervalSec}
onChange={(event) => onChange({
...form,
retryIntervalSec: event.target.value,
})}
/>
</label>
<div className="inspector-grid">
<label>
<span></span>
<input
type="number"
min="0"
value={form.retryIntervalSec}
onChange={(event) => onChange({
...form,
retryIntervalSec: event.target.value,
})}
/>
</label>
<label>
<span>Python </span>
<select
value={form.pythonVersion}
onChange={(event) => onChange({
...form,
pythonVersion: event.target.value as NodeForm["pythonVersion"],
})}
>
{PYTHON_VERSION_OPTIONS.map((option) => (
<option key={option} value={option}>
{option}
</option>
))}
</select>
</label>
</div>
</section>
<section>
<h3></h3>