Skip to content

Commit a01af17

Browse files
add debug and Patched
1 parent 1f1ed11 commit a01af17

2 files changed

Lines changed: 9 additions & 7 deletions

File tree

‎js/launcher.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ export function ocrun(data_dict, element, onAppIsRunning = () => {}) {
135135
});
136136

137137
source.addEventListener("message", (msg) => {
138-
// console.log( msg );
138+
console.log( msg );
139139
if (msg.id) {
140140
console.log(`Received event ${msg.id}`);
141141
}

‎js/taskstate.js‎

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -120,22 +120,24 @@ export const update_applicationstatus = function () {
120120
};
121121

122122
export const update_on_container_notification = function( container ) {
123-
// console.log( container );
123+
124124
let reason = container.reason;
125+
console.log( reason );
125126
switch( reason ) {
126-
case 'Patched':
127127
case 'Created':
128128
case 'Scheduled':
129-
case 'PodInitializing':
130129
case 'Pulling':
130+
case 'Patched':
131+
case 'PodInitializing':
131132
add_task( container );
132-
break;
133+
break;
134+
case 'Patched':
135+
case 'Pulled':
133136
case 'Started':
134137
case 'Running':
135-
case 'Pulled':
136138
case 'Completed':
137139
remove_task( container );
138-
break;
140+
break;
139141
default:
140142
remove_task( container );
141143
}

0 commit comments

Comments
 (0)