-
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 #174 from golemfactory/handle-new-termination-reasons
Fix JobStatus backward change from Interrupted to Finished
- Loading branch information
Showing
14 changed files
with
342 additions
and
91 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
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
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,41 @@ | ||
using Microsoft.Extensions.Logging; | ||
|
||
namespace Golem.Tools | ||
{ | ||
public class GolemCentralNet : GolemRunnable | ||
{ | ||
const string CURRENT_ROUTER_VERSION = "v0.7.2"; | ||
|
||
private GolemCentralNet(string dir, ILogger logger) : base(dir, logger) | ||
{ | ||
} | ||
|
||
public async static Task<GolemCentralNet> Build(string testDir, ILogger logger) | ||
{ | ||
var dir = await BuildCentralNetDir(testDir); | ||
return new GolemCentralNet(dir, logger); | ||
} | ||
|
||
public override bool Start() | ||
{ | ||
var working_dir = Path.Combine(_dir, "modules", "golem-data", "central-net"); | ||
Directory.CreateDirectory(working_dir); | ||
return StartProcess("ya-sb-router", working_dir, "-l tcp://127.0.0.1:6464", new Dictionary<string, string>()); | ||
} | ||
|
||
protected static async Task<string> BuildCentralNetDir(string test_dir) | ||
{ | ||
var dir = PackageBuilder.PrepareTestDirectory(test_dir, true); | ||
var binaries_dir = PackageBuilder.BinariesDir(dir); | ||
|
||
Directory.CreateDirectory(binaries_dir); | ||
|
||
var artifact = "ya-sb-router"; | ||
var repo = "golemfactory/ya-service-bus"; | ||
var tag = CURRENT_ROUTER_VERSION; | ||
|
||
await PackageBuilder.DownloadExtractPackage(binaries_dir, artifact, repo, tag); | ||
return dir; | ||
} | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
b0f8813e42e0170c8a6c94e7c34b257df3a7a77322b61dc914f8b48b0d03d166 |
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
Oops, something went wrong.