Skip to content

Commit

Permalink
Merge branch 'w/2.8/improvement/ZENKO-4941' into tmp/octopus/w/2.9/im…
Browse files Browse the repository at this point in the history
…provement/ZENKO-4941
  • Loading branch information
bert-e committed Dec 3, 2024
2 parents e786b90 + 4388475 commit 28e935e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/ctst/steps/utils/kubernetes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,12 @@ export async function createJobAndWaitForCompletion(
fs.writeFileSync(lockFilePath, 'job');
}

// Wait 1s to make the lock stale
await Utils.sleep(1000);

try {
// Acquire lock on the file with 1s delay and 10 minutes timeout
releaseLock = await lockFile.lock(lockFilePath, { stale: 1000, retries: 600 });
// Acquire lock on the file with 0.5s staleness and 1200 retries
releaseLock = await lockFile.lock(lockFilePath, { stale: 500, retries: 1200 });
world.logger.debug(`Acquired lock for job: ${jobName}`);

// Read the cron job and prepare the job spec
Expand Down

0 comments on commit 28e935e

Please sign in to comment.