-
-
Notifications
You must be signed in to change notification settings - Fork 226
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
[BUG] Spring Boot app getting crash at startup due to JobRunr cron job 'JobRunrException' #189
Comments
The caused by of the stacktrace is missing so I can't really help now. |
Did your kotlin version change? |
That is the only stack trace I see in the logs. And no I didn't change the project's Kotlin version. |
Yes, it's the only stack trace but the caused by part is missing. See https://github.com/jobrunr/jobrunr/blob/master/core/src/main/java/org/jobrunr/jobs/details/JobDetailsGeneratorUtils.java#L70 (the variable e)/ |
Hi @rdehuyss I finally fixed it. Seems like, a single This is the final code. @PostConstruct
fun startJobRunr() {
jobScheduler.scheduleRecurrently(Cron.minutely()) {
runJob1()
}
jobScheduler.scheduleRecurrently(Cron.minutely()) {
runJob2()
}
}
@Job
fun runJob2() {
..
}
@Job
fun runJob2() {
..
} I am not sure whether this is mentioned in the JobRunr docs or I missed reading it. But this is strange. Is this design by purpose? Anyways great library! Cheers 💯 |
Closing this issue 👍🏼 |
Documentation needs to be updated |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Solved in 4.0.0-RC2 (somewhere tomorrow in Maven Central) and in docs once deployed |
Are you running the latest version of JobRunr?
Yes
How to Reproduce
I am strangely facing similar issue since yesterday.
I don't know what is wrong going, I didn't change any line of code in this file since long.
Here is my code:
Crash log stack-trace
Environment
I'm using JobRunr version:
3.2.1
My IntelliJ config
Expected behavior
All the jobs should run & the spring boot instance should not crash.
The text was updated successfully, but these errors were encountered: