You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! I create scheduled task like this ScheduledFuture<?> future = executorService.scheduleWithFixedDelay(new RunnableTask(123), 5, 10, TimeUnit.HOURS);
and put future.taskId to a map.
Then this task in one of its iteration should stop&delete itself. I do it like this: executorService.cancelTask(taskId).
I've put this code in try {} catch(e:Exception){}, but i have InterruptedException again (not from my code, but the Redisson' one).
How i can to remove this exception from log, is t possible?
Appreciate any ideas, thank you
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi! I create scheduled task like this
ScheduledFuture<?> future = executorService.scheduleWithFixedDelay(new RunnableTask(123), 5, 10, TimeUnit.HOURS);
and put
future.taskId
to a map.Then this task in one of its iteration should stop&delete itself. I do it like this:
executorService.cancelTask(taskId)
.I've put this code in
try {} catch(e:Exception){}
, but i haveInterruptedException
again (not from my code, but the Redisson' one).How i can to remove this exception from log, is t possible?
Appreciate any ideas, thank you
Beta Was this translation helpful? Give feedback.
All reactions