@@ -283,16 +283,6 @@ qx.Class.define("osparc.data.model.NodeProgressSequence", {
283283 } ,
284284
285285 __applySidecarPulling : function ( value ) {
286- // the sidecar pulling progress goes from 0 to 1 in about 20" with no intermediate updates from the backend
287- if ( value . value === 0 ) {
288- // start fake progress when the frontend gets a 0% and stop it gets a 100%
289- this . __startSidecarPullingFakeProgress ( ) ;
290- } else if ( value . value === 1 ) {
291- // stop fake progress when the backend reports 100%
292- // by setting it to 100%
293- this . __stopSidecarPullingFakeProgress ( ) ;
294- }
295-
296286 if ( value . value === 1 ) {
297287 // on non autoscaled deployments, there is no cluster upscaling phase
298288 // when the sidecar pulling is done, make sure the cluster upscaling is also set to 100%
@@ -353,35 +343,5 @@ qx.Class.define("osparc.data.model.NodeProgressSequence", {
353343
354344 this . __computeOverallProgress ( ) ;
355345 } ,
356-
357- __startSidecarPullingFakeProgress : function ( ) {
358- // stop any previous timer
359- this . __stopSidecarPullingFakeProgress ( ) ;
360- // increase fake progress:
361- // - every second
362- // - up to 99%
363- // - by progressStep each time: fill it in about 60 seconds
364- // - make sure the backend didn't already update it
365- this . __sidecarFakeProgressTimer = setInterval ( ( ) => {
366- const progressStep = 1 / 60 ;
367- const sidecarProgress = this . getSidecarPulling ( ) ;
368- if ( sidecarProgress . value < 0.99 ) {
369- const newValue = Math . min ( sidecarProgress . value + progressStep , 0.99 ) ;
370- this . setSidecarPulling ( {
371- progressLabel : `${ ( osparc . utils . Utils . safeToFixed ( newValue * 100 , 1 ) ) } %` ,
372- value : newValue
373- } ) ;
374- } else {
375- this . __stopSidecarPullingFakeProgress ( ) ;
376- }
377- } , 1000 ) ;
378- } ,
379-
380- __stopSidecarPullingFakeProgress : function ( ) {
381- if ( this . __sidecarFakeProgressTimer ) {
382- clearInterval ( this . __sidecarFakeProgressTimer ) ;
383- this . __sidecarFakeProgressTimer = null ;
384- }
385- } ,
386346 }
387347} ) ;
0 commit comments