This commit is contained in:
Sam Rose 2025-02-18 11:17:05 +00:00
parent 9c445c1a8c
commit 5aeac61cd1
No known key found for this signature in database
2 changed files with 1 additions and 2 deletions

View File

@ -136,7 +136,6 @@ export class InMemoryQueue<T = any> implements Partial<Queue<T>> {
* a JSON message as this is required by Bull.
* @param repeat serves no purpose for the import queue.
*/
// add(name: string, data: T, opts?: JobOptions): Promise<Job<T>>;
async add(data: T | string, optsOrT?: JobOptions | T) {
if (typeof data === "string") {
throw new Error("doesn't support named jobs")

View File

@ -201,7 +201,7 @@ class Orchestrator {
return metadata.errorCount
} catch (error: any) {
err = error
await helpers.wait(Math.random() * 10)
await helpers.wait(1000 + Math.random() * 1000)
}
}