feat: support batchJob for windows (#19877)

This commit is contained in:
jiuker
2024-06-05 23:44:53 +08:00
committed by GitHub
parent 91e1487de4
commit d326ba52e9
4 changed files with 13 additions and 3 deletions

View File

@@ -1633,7 +1633,7 @@ func (a adminAPIHandlers) StartBatchJob(w http.ResponseWriter, r *http.Request)
return
}
job.ID = fmt.Sprintf("%s:%d", shortuuid.New(), GetProxyEndpointLocalIndex(globalProxyEndpoints))
job.ID = fmt.Sprintf("%s%s%d", shortuuid.New(), getBatchJobIDSeparator(), GetProxyEndpointLocalIndex(globalProxyEndpoints))
job.User = user
job.Started = time.Now()