mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-02-13 02:42:45 +00:00
feat: retry 3 times to download a repository
This commit is contained in:
@@ -185,7 +185,7 @@ export default class Repository {
|
||||
this._model.anonymizeDate = new Date();
|
||||
console.log(`${this._model.repoId} will be updated to ${newCommit}`);
|
||||
await this.resetSate("preparing");
|
||||
await downloadQueue.add(this, { jobId: this.repoId });
|
||||
await downloadQueue.add(this, { jobId: this.repoId, attempts: 3 });
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user