Merge branch 'ccp-features' of https://code-repo.d4science.org/gCubeSystem/cdn-experiments into ccp-features
This commit is contained in:
commit
c92b818027
|
@ -8,7 +8,7 @@ class CCPExecutionHistory extends HTMLElement {
|
||||||
#data = [];
|
#data = [];
|
||||||
#pending = [];
|
#pending = [];
|
||||||
#filtered = [];
|
#filtered = [];
|
||||||
#socket = null;
|
#sockets = null;
|
||||||
#interval = null;
|
#interval = null;
|
||||||
#searchfield = null;
|
#searchfield = null;
|
||||||
#fileupload = null;
|
#fileupload = null;
|
||||||
|
@ -274,6 +274,10 @@ class CCPExecutionHistory extends HTMLElement {
|
||||||
this.#socket = new WebSocket(this.#broadcasturl + "/executions");
|
this.#socket = new WebSocket(this.#broadcasturl + "/executions");
|
||||||
this.#socket.onmessage = event=>{
|
this.#socket.onmessage = event=>{
|
||||||
const data = JSON.parse(event.data)
|
const data = JSON.parse(event.data)
|
||||||
|
if(!data.jobID){
|
||||||
|
console.log("New logs " + event.data)
|
||||||
|
return
|
||||||
|
}
|
||||||
let exec = this.#data.filter(e=>e.id === data.jobID)[0]
|
let exec = this.#data.filter(e=>e.id === data.jobID)[0]
|
||||||
if(exec){
|
if(exec){
|
||||||
this.refreshExecution(exec.id)
|
this.refreshExecution(exec.id)
|
||||||
|
|
Loading…
Reference in New Issue