txm119161336 commented on issue #2490:
URL: 
https://github.com/apache/shardingsphere-elasticjob/issues/2490#issuecomment-4415540750

   I have run a unit test and i find the misfire process actually works as 
below. 
   First it will trigger the listenerJ obTriggerListener#triggerMisfired(...) 
which will setup the misfire flag then  it will call 
ElasticJobExecutor#execute() . In the execute method , there are two parts as 
below 
           execute(jobConfig, shardingContexts, 
ExecutionSource.NORMAL_TRIGGER); // this is the first time 
           while 
(jobFacade.isExecuteMisfired(shardingContexts.getShardingItemParameters().keySet()))
 {
               
jobFacade.clearMisfire(shardingContexts.getShardingItemParameters().keySet());
               execute(jobConfig, shardingContexts, ExecutionSource.MISFIRE); 
//this is the second time
           } 
   as what i commented above in codes ,there are actually two times execution. 
You can try do unit test to see if what i said is correct or not


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to