Migrating to vanilla redis from rejson, using a threadsafe RedisHelper
Squashed commit of the following: commit f3549005c0192fd77bf47d208b74a11dd21380fa Author: Ian Roddis <gitlab@ie2r.com> Date: Sun Oct 17 10:52:12 2021 -0300 Fixing issues with serialization of attempt records that included newlines commit ab387d62850428e320a05cdf54fd2026369d0bb6 Author: Ian Roddis <gitlab@ie2r.com> Date: Fri Oct 15 12:57:14 2021 -0300 Migrating to vanilla redis from rejson commit f648cf065dea2d0a7e30aaec17441e9a37531ba0 Author: Ian Roddis <gitlab@ie2r.com> Date: Fri Oct 15 10:23:34 2021 -0300 Making rediscontext threadsafe commit ca51d95c5c4a5f4aaa13c5abe32da161e919d66c Author: Ian Roddis <gitlab@ie2r.com> Date: Fri Oct 15 10:01:33 2021 -0300 updating todo
This commit is contained in:
@@ -99,13 +99,13 @@ namespace {
|
||||
|
||||
SECTION("Log task attempt and retrieve it")
|
||||
{
|
||||
std::cout << "Task attempts" << std::endl;
|
||||
std::string error = "long error string\nwith new\n lines";
|
||||
logger.logTaskAttempt(runID, "work_a",
|
||||
AttemptRecord{.rc = 2, .errorLog = "help"});
|
||||
AttemptRecord{.rc = 2, .errorLog = error});
|
||||
auto dagRun = logger.getDAGRun(runID);
|
||||
|
||||
REQUIRE(dagRun.taskAttempts["work_a"].size() == 1);
|
||||
REQUIRE(dagRun.taskAttempts["work_a"][0].errorLog == "help");
|
||||
REQUIRE(dagRun.taskAttempts["work_a"][0].errorLog == error);
|
||||
REQUIRE(dagRun.taskAttempts["work_a"][0].rc == 2);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user