-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #164 from nextmv-io/develop
Release v0.20.11
- Loading branch information
Showing
15 changed files
with
34 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
v0.20.10 | ||
v0.20.11 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -62,7 +62,9 @@ type Option struct { | |
// here in case no duration limit is set. For local runs there is no time | ||
// limitation. If you want to make cloud runs for longer than 5 minutes, | ||
// please contact: [email protected] | ||
Duration time.Duration `json:"duration" default:"10s"` | ||
Limits struct { | ||
Duration time.Duration `json:"duration" default:"10s"` | ||
} `json:"limits"` | ||
} | ||
|
||
// Output is the output of the solver. | ||
|
@@ -111,7 +113,7 @@ func solver( | |
solveOptions := mip.NewSolveOptions() | ||
|
||
// Limit the solve to a maximum duration. | ||
err = solveOptions.SetMaximumDuration(opts.Duration) | ||
err = solveOptions.SetMaximumDuration(opts.Limits.Duration) | ||
if err != nil { | ||
return nil, err | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,7 +50,9 @@ type Option struct { | |
// here in case no duration limit is set. For local runs there is no time | ||
// limitation. If you want to make cloud runs for longer than 5 minutes, | ||
// please contact: [email protected] | ||
Duration time.Duration `json:"duration" default:"10s"` | ||
Limits struct { | ||
Duration time.Duration `json:"duration" default:"10s"` | ||
} `json:"limits"` | ||
} | ||
|
||
// Output is the output of the solver. | ||
|
@@ -100,7 +102,7 @@ func solver(input input, opts Option) ([]Output, error) { | |
solveOptions := mip.NewSolveOptions() | ||
|
||
// Limit the solve to a maximum duration | ||
if err = solveOptions.SetMaximumDuration(opts.Duration); err != nil { | ||
if err = solveOptions.SetMaximumDuration(opts.Limits.Duration); err != nil { | ||
return nil, err | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -62,7 +62,9 @@ type Option struct { | |
// here in case no duration limit is set. For local runs there is no time | ||
// limitation. If you want to make cloud runs for longer than 5 minutes, | ||
// please contact: [email protected] | ||
Duration time.Duration `json:"duration" default:"10s"` | ||
Limits struct { | ||
Duration time.Duration `json:"duration" default:"10s"` | ||
} `json:"limits"` | ||
} | ||
|
||
// Output is the output of the solver. | ||
|
@@ -146,7 +148,7 @@ func solver(input input, opts Option) ([]Output, error) { | |
solveOptions := mip.NewSolveOptions() | ||
|
||
// Limit the solve to a maximum duration | ||
if err = solveOptions.SetMaximumDuration(opts.Duration); err != nil { | ||
if err = solveOptions.SetMaximumDuration(opts.Limits.Duration); err != nil { | ||
return nil, err | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters