RE: is that bug of Scheduled Jobs interface

Scarletake Bwi, modified 3 Years ago. Expert Posts: 327 Join Date: 12/20/10 Recent Posts

hi

i use liferay 7.4, i found that in contorl panel>Job Scheduler>Scheduled Jobs

when i try trigger it, the be triggered job not my target.


 

for example, if i push the "Run Now" of PIvRecordPullerScheduler, PqmFailureRrecordPullerScheduler will run up.


 

is that a bug? or anything i wrong?

thank you

thumbnail
Olaf Kock, modified 3 Years ago. Liferay Legend Posts: 6441 Join Date: 9/23/08 Recent Posts

How did you create your own jobs?

E.g. when you create your implementations for DispatchTaskExecutor: Do the components have different properties (e.g. name/type)?

 

Scarletake Bwi, modified 3 Years ago. Expert Posts: 327 Join Date: 12/20/10 Recent Posts

like this, is "name" necessary?

@Component(immediate = true, property = { "cron.expression=0 0 * * * ?" }, 		service = PqmFailureRecordPullerScheduler.class)
public class PqmFailureRecordPullerScheduler extends BaseMessageListener {
...
@Component(immediate = true, property = { "cron.expression=0 0 0 * * ?" }, 
		service = PivRecordPullerScheduler.class)
public class PivRecordPullerScheduler extends BaseMessageListener {
...