Skip to content

Commit

Permalink
🔊 adding more logs when there are loop locks
Browse files Browse the repository at this point in the history
  • Loading branch information
Rohland committed Oct 25, 2024
1 parent c5e7a46 commit 7aa6105
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/loop.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,11 @@ function validateNoOtherInstancesRunningFor(args) {
args.rules,
args.eval,
args.digest].join(";").toLowerCase();
return canLockProcessFor(key);
const canLock = canLockProcessFor(key);
if (!canLock) {
console.log("another instance is running with this configuration, aborting... (inspect .barky.*.lock files)");
}
return canLock;
}

async function doLoop(args, runner: () => Promise<number>): Promise<number> {
Expand Down

0 comments on commit 7aa6105

Please sign in to comment.