Skip to content

Commit

Permalink
adjust migration script params
Browse files Browse the repository at this point in the history
  • Loading branch information
simke9445 committed Jan 15, 2024
1 parent 268e61a commit 2d09a77
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/migrate/migrate_finished_jobs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ const createMigrateJobsMsg = (startAfter: string, limit: number) => {

const loop = async () => {
let startAfter = 0;
const limit = 50;
const limit = 20;

// TODO: Update to current max job id on testnet/mainnet
const maxJobId = 6000;
Expand All @@ -84,8 +84,8 @@ const loop = async () => {
break; // Stop the loop if there is an error
}

console.log('Sleeping for 1 second...');
await new Promise((resolve) => setTimeout(resolve, 1000));
console.log('Sleeping for 10 seconds...');
await new Promise((resolve) => setTimeout(resolve, 10000));
}

console.log('Migration process has completed.');
Expand Down
6 changes: 3 additions & 3 deletions src/migrate/migrate_pending_jobs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ const createMigrateJobsMsg = (startAfter: string, limit: number) => {

const loop = async () => {
let startAfter = 0;
const limit = 50;
const limit = 20;
// TODO: Update to current max job id on testnet/mainnet
const maxJobId = 6000;

Expand All @@ -83,8 +83,8 @@ const loop = async () => {
break; // Stop the loop if there is an error
}

console.log('Sleeping for 1 second...');
await new Promise((resolve) => setTimeout(resolve, 1000));
console.log('Sleeping for 10 seconds...');
await new Promise((resolve) => setTimeout(resolve, 10000));
}

console.log('Migration process has completed.');
Expand Down

0 comments on commit 2d09a77

Please sign in to comment.