Jobrunr Problem Demo

This is a demo project to show a problem with Jobrunr.

How to reproduce

  1. Start the application
./gradlew bootRun
  1. Call normal endpoint
curl http://localhost:8080/jobs/enqueue/normal
  1. Call endpoint with problem
curl http://localhost:8080/jobs/enqueue/bug
  1. Check the logs
# For normal endpoint should see
having fun with 1, 2

# For problem endpoint should see
java.lang.NullPointerException: You are passing null as a parameter to your background job for type long - JobRunr prevents this to fail fast.