Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Develop #164

Merged
merged 2 commits into from
Oct 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions src/modules/crawler/job-unlock.provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,6 @@ export class JobUnlockProvider {
age: this.jobRemoveDueDate,
},
backoff: this.signatureJobBackOff,
jobId: `validate-signature-${data.eventLogId}-${i}`,
},
);
}
Expand All @@ -166,7 +165,6 @@ export class JobUnlockProvider {
age: this.jobRemoveDueDate,
},
backoff: this.sendTxJobBackOff,
jobId: `send-tx-${data.eventLogId}`,
},
);
}
Expand Down
5 changes: 4 additions & 1 deletion src/shared/modules/queue/queue.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,10 @@ export class QueueService {
const queue = this.initQueueOnDemand(queueName);
if (!!options.jobId) {
const canContinue = await this.removeExistedJobIfFailed(options.jobId, queue);
if (!canContinue) return false;
if (!canContinue) {
this.logger.warn('this job is existed in queue and not in failed status');
return false;
}
}
await queue.add(job, options);
return true;
Expand Down
Loading