diff --git a/packages/nocodb/src/modules/jobs/migration-jobs/init-migration-jobs.ts b/packages/nocodb/src/modules/jobs/migration-jobs/init-migration-jobs.ts index bd5d696633..e2befcd22c 100644 --- a/packages/nocodb/src/modules/jobs/migration-jobs/init-migration-jobs.ts +++ b/packages/nocodb/src/modules/jobs/migration-jobs/init-migration-jobs.ts @@ -120,8 +120,12 @@ export class InitMigrationJobs { // clear stall interval clearInterval(stallInterval); - // run the job again - await this.jobsService.add(MigrationJobTypes.InitMigrationJobs, {}); + // run the job again if successful + if (migrated) { + await this.jobsService.add(MigrationJobTypes.InitMigrationJobs, {}); + } else { + this.log('A migration job failed!'); + } } catch (e) { this.log('Error running migration: ', e); }