Skip to content

Commit

Permalink
Merge branch 'develop' into EPMRPP-89510
Browse files Browse the repository at this point in the history
  • Loading branch information
grabsefx authored May 23, 2024
2 parents 1b63af7 + 36c9ac8 commit 0c7b603
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import static com.epam.ta.reportportal.job.PageUtil.iterateOverPages;
import static java.time.Duration.ofSeconds;

import com.epam.reportportal.extension.event.LaunchFinishedPluginEvent;
import com.epam.ta.reportportal.core.events.activity.LaunchFinishedEvent;
import com.epam.ta.reportportal.dao.LaunchRepository;
import com.epam.ta.reportportal.dao.LogRepository;
Expand Down Expand Up @@ -151,8 +152,10 @@ private void interruptLaunch(Long launchId) {
}

private void publishFinishEvent(Launch launch) {
final LaunchFinishedEvent event = new LaunchFinishedEvent(launch);
eventPublisher.publishEvent(event);
final LaunchFinishedEvent launchFinishedEvent = new LaunchFinishedEvent(launch);
final LaunchFinishedPluginEvent finishedPluginEvent = new LaunchFinishedPluginEvent(launch.getId(), launch.getProjectId());
eventPublisher.publishEvent(launchFinishedEvent);
eventPublisher.publishEvent(finishedPluginEvent);
}

private void interruptItems(Long launchId) {
Expand Down

0 comments on commit 0c7b603

Please sign in to comment.