Skip to content

Commit

Permalink
add condition to removeJobFromBlacklist
Browse files Browse the repository at this point in the history
  • Loading branch information
defi-dev committed Mar 3, 2024
1 parent c5badb8 commit c54b784
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/agents/AbstractAgent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,9 @@ export abstract class AbstractAgent implements IAgent {
}

public removeJobFromBlacklist(jobKey, reason) {
if (!this.isJobBlacklisted(jobKey)) {
return;
}
this.clog('info', `removeJobFromBlacklist: ${jobKey}, reason ${reason}`);
this.blacklistedJobs.delete(jobKey);
this.executor.sendRemoveBlacklistedJob(this, jobKey, reason);
Expand Down

0 comments on commit c54b784

Please sign in to comment.