Fixed - RScheduledExecutorService.scheduleAtFixedRate() stops work after some time. #3514

pull/3941/head
Nikita Koksharov 4 years ago
parent fe565660bf
commit c05383b995

@ -130,7 +130,7 @@ public class TasksRunnerService implements RemoteExecutorService {
params.setStartTime(newStartTime);
RFuture<Void> future = asyncScheduledServiceAtFixed(params.getExecutorId(), params.getRequestId()).scheduleAtFixedRate(params);
try {
executeRunnable(params);
executeRunnable(params, false);
} catch (Exception e) {
// cancel task if it throws an exception
future.cancel(true);

Loading…
Cancel
Save