File tree Expand file tree Collapse file tree 1 file changed +12
-13
lines changed
Expand file tree Collapse file tree 1 file changed +12
-13
lines changed Original file line number Diff line number Diff line change @@ -447,19 +447,18 @@ class CronMigrationManager {
447447 const { name, duration } = stepData ;
448448
449449 // Simulate step execution with progress updates for other migrations
450- const progressSteps = 10 ;
451- for ( let i = 0 ; i <= progressSteps ; i ++ ) {
452- const progress = Math . round ( ( i / progressSteps ) * 100 ) ;
453-
454- // Update step progress
455- cronJobStorage . saveJobStep ( jobId , stepIndex , {
456- progress,
457- currentAction : `Executing: ${ name } (${ progress } %)`
458- } ) ;
459-
460- // Simulate work
461- await new Promise ( resolve => setTimeout ( resolve , duration / progressSteps ) ) ;
462- }
450+ const progressSteps = 10 ;
451+ for ( let i = 0 ; i <= progressSteps ; i ++ ) {
452+ const progress = Math . round ( ( i / progressSteps ) * 100 ) ;
453+
454+ // Update step progress
455+ cronJobStorage . saveJobStep ( jobId , stepIndex , {
456+ progress,
457+ currentAction : `Executing: ${ name } (${ progress } %)`
458+ } ) ;
459+
460+ // Simulate work
461+ await new Promise ( resolve => setTimeout ( resolve , duration / progressSteps ) ) ;
463462 }
464463 }
465464
You can’t perform that action at this time.
0 commit comments