This (obviously) works:
@Every("10s")
public class Extinguisher extends Job {
...
}
…but this doesn’t:
@Every(Play.configuration.getProperty("my.setting", "10s"))
public class Extinguisher extends Job {
...
}
When running auto-test, the app doesn’t start and complains my controllers can’t get enhanced because of a NullPointerException encountered by javassist.
Is there a way to configure a job scheduling from application.conf?
You can schedule your job manually from
@OnApplicationStartupjob: