1
0
mirror of https://github.com/ohwgiles/laminar.git synced 2026-10-23 20:08:44 +00:00

resolves #82: implement /latest endpoint

for run page on webui and archive (via symlink)
This commit is contained in:
Oliver Giles
2019-02-18 23:06:11 +02:00
parent 137f35bdd7
commit b15166e83b
2 changed files with 10 additions and 0 deletions

View File

@@ -865,6 +865,8 @@ void Laminar::runFinished(Run * r) {
fsHome->remove(d);
}
fsHome->symlink(kj::Path{"archive", r->name, "latest"}, std::to_string(r->build), kj::WriteMode::CREATE|kj::WriteMode::MODIFY);
// in case we freed up an executor, check the queue
assignNewJobs();
}