mirror of
https://github.com/datarhei/core.git
synced 2025-10-05 07:57:13 +08:00
Add force=restart parameter for process updates
This commit is contained in:
@@ -516,7 +516,7 @@ func (a *api) ProcessUpdate(c echo.Context) error {
|
||||
"new_id": r.Config.ProcessID(),
|
||||
}).Log("Update process request")
|
||||
|
||||
err := a.cluster.ProcessUpdate(origin, pid, &r.Config)
|
||||
err := a.cluster.ProcessUpdate(origin, pid, &r.Config, r.Force)
|
||||
if err != nil {
|
||||
a.logger.Debug().WithError(err).WithField("id", pid).Log("Unable to update process")
|
||||
return ErrFromClusterError(err)
|
||||
|
Reference in New Issue
Block a user