Closed kostysh closed 3 months ago
Thank you for the issue! I will solve these and give you an answer as soon as possible.
@kostysh
This was fixed in v1.1.9 🚀
export type Processor<T extends JobAttributesData> = (job: Job<T>, done: () => void) => void | Promise<void>;
Awesome!
Thank you, very quick )
Here is the actual type:
So, you cannot define async processors like mentioned in the example:
Also, question: Why the
done
argument is optional? Where are conditions whendone
may be defined or not?