Skip to content

Commit

Permalink
fix: address feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
paulpascal committed Nov 26, 2024
1 parent b443d4c commit d55eade
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/worker/move-contact-worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,10 @@ export class MoveContactWorker {
attemptsMade: number, type: string | undefined, err: Error | undefined, job: MinimalJob | undefined
): number => {
const {retryTimeFormatted} = this.computeRetryTime();
const fullMessage = `Job ${job?.id} will be retried ${attemptsMade + 1} time at ${retryTimeFormatted}. Due to failure: ${type}: ${err?.message}`;

const fullMessage = `Job ${job?.id} will retry at ${retryTimeFormatted}.\
Attempt Number: ${attemptsMade + 1}. Due to failure: ${type}: ${err?.message}`;

this.logWithTimestamp(job, fullMessage);
return this.DELAY_IN_MILLIS;
};
Expand Down

0 comments on commit d55eade

Please sign in to comment.