Add production run history cleanup

This commit is contained in:
2026-05-10 14:20:10 +08:00
parent 5c73e2c1c2
commit 3818f6e03e
7 changed files with 507 additions and 82 deletions
+13 -2
View File
@@ -16,8 +16,19 @@ export const submitRun = (payload) =>
apiClient.post('/dinsar-production/run', payload).then(r => r.data);
// 运行历史
export const listRuns = (limit = 20) =>
apiClient.get(`/dinsar-production/runs?limit=${encodeURIComponent(limit)}`).then(r => r.data);
export const listRuns = (limit = 20, offset = 0) =>
apiClient.get(
`/dinsar-production/runs?limit=${encodeURIComponent(limit)}&offset=${encodeURIComponent(offset)}`,
).then(r => r.data);
export const getRunLog = (runId) =>
apiClient.get(`/dinsar-production/runs/${encodeURIComponent(runId)}/log`).then(r => r.data);
export const deleteRunLog = (runId) =>
apiClient.delete(`/dinsar-production/runs/${encodeURIComponent(runId)}/log`).then(r => r.data);
export const deleteRunRecord = (runId) =>
apiClient.delete(`/dinsar-production/runs/${encodeURIComponent(runId)}`).then(r => r.data);
export const previewPyintInputAssets = (payload) =>
apiClient.post('/dinsar-production/engines/pyint/preview-input-assets', payload).then(r => r.data);