mirror of
https://github.com/XShengTech/MEGREZ.git
synced 2026-05-03 13:02:38 +00:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 716764a86d | |||
| 44c319698c |
@@ -61,7 +61,7 @@ func control(serverID uint, data Data) (err error) {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
ctx := context.Background()
|
ctx := context.Background()
|
||||||
redis.RawDB.IncrBy(ctx, "remain_gpu:server:"+strconv.Itoa(int(serverID)), int64(instance.GpuCount))
|
redis.RawDB.IncrBy(ctx, "remain_gpu:server:"+strconv.Itoa(int(serverID)), int64(instance.GpuCount))
|
||||||
database.DB.Model(&instance).Update("status", models.InstanceStatusFail).Update("from_action", models.InstanceActionRestart)
|
database.DB.Model(&instance).Update("status", models.InstanceStatusFail).Update("from_action", models.InstanceActionStart)
|
||||||
lc.Error("instance restart error: %v", err)
|
lc.Error("instance restart error: %v", err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -63,7 +63,7 @@ func createInstance(ip string, port int, apikey string,
|
|||||||
if config.GetSystemMountDir() != "" {
|
if config.GetSystemMountDir() != "" {
|
||||||
data.Binds = append(data.Binds, bindStruct{
|
data.Binds = append(data.Binds, bindStruct{
|
||||||
Src: config.GetSystemMountDir(),
|
Src: config.GetSystemMountDir(),
|
||||||
Dest: "/root/megrez",
|
Dest: "/root/megrez-pub",
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user