You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
after upgrading to the latest version 0.6.0 I get the following exception:
(node:82651) UnhandledPromiseRejectionWarning: #<JobRepeatException>
(node:82651) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:82651) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
I'm using the @Cron decorator. Where do I have to set the key or do I have to set the key at all?
Thanks for your help.
The text was updated successfully, but these errors were encountered:
I think you have another job with the same key maybe, it should be global unique(The default key is function name if you not specific it),
You should set a key when schedule a job such as @Cron('', {key: 'test-key'}) now.
I will try use class name as namespace to resolve it in the future version, thanks
First I checked the readme if I can set the key using the decorator and did not pay enough attention that ICronJobConfig actually extends IJobConfig. Maybe you could update the readme (section @Cron decorator).
First I checked the readme if I can set the key using the decorator and did not pay enough attention that ICronJobConfig actually extends IJobConfig. Maybe you could update the readme (section @Cron decorator).
Hey,
after upgrading to the latest version 0.6.0 I get the following exception:
I'm using the
@Cron
decorator. Where do I have to set the key or do I have to set the key at all?Thanks for your help.
The text was updated successfully, but these errors were encountered: