mirror of
https://github.com/ohwgiles/laminar.git
synced 2024-10-27 20:34:20 +00:00
propagate job_completed message to run page
This commit is contained in:
parent
e140221c72
commit
beede38643
@ -596,7 +596,11 @@ void Laminar::assignNewJobs() {
|
|||||||
j.EndObject();
|
j.EndObject();
|
||||||
const char* msg = j.str();
|
const char* msg = j.str();
|
||||||
for(LaminarClient* c : clients) {
|
for(LaminarClient* c : clients) {
|
||||||
if(c->scope.wantsStatus(run->name, run->build))
|
if(c->scope.wantsStatus(run->name, run->build)
|
||||||
|
// The run page also should know that another job has started
|
||||||
|
// (so maybe it can show a previously hidden "next" button).
|
||||||
|
// Hence this small hack:
|
||||||
|
|| (c->scope.type == MonitorScope::Type::RUN && c->scope.job == run->name))
|
||||||
c->sendMessage(msg);
|
c->sendMessage(msg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user