Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UnhandledPromiseRejectionWarning: #<JobRepeatException> is thrown when apply HRM #32

Open
6thpath opened this issue Jul 22, 2019 · 1 comment

Comments

@6thpath
Copy link

6thpath commented Jul 22, 2019

Nest throw this error when HRM is active

(node:11295) UnhandledPromiseRejectionWarning: #<JobRepeatException>
(node:11295) 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: 7)

Please help!

@coldiary
Copy link

I had the same exception thrown, I didn't look at the internals but giving a unique key to cron decorators prevent the exception to be thrown in my case :

@Cron('* 12 * * *', { key: 'some-unique-identifier' })
scheduledMethod() {
    // ...
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants