문제

The question might sound very silly but here it is,

Are the scheduled jobs in play framework triggered automatically or do they need to be called from some place, say may be from application start up or so? Or does it need any kind of configuration to be done except the scheduled time which in my case is

"@On("0 40 12 ? * MON-FRI")"

Please revert.

도움이 되었습니까?

해결책

Jobs are triggered automatically. You can also invoke them manually, for example from another controller, by invoking the now() method on an Job instance. Have a look at http://playframework.com/documentation/1.2.7/jobs#scheduling for more details.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top