eclipse-hawkbit / hawkbit

Eclipse hawkBit™
https://projects.eclipse.org/projects/iot.hawkbit
Eclipse Public License 2.0
460 stars 189 forks source link

Switch shutdown to shutdownNow in executors #1841

Closed strailov closed 3 weeks ago

strailov commented 3 weeks ago

When invoking shutdown of executors this will leave all current scheduled tasks for execution. This means possibly there will be one last poll after that. In the case of a device simulator for example this is not good because when clearing all the created demo devices sometimes some are left behind for this particular reason. When using shutdownNow() we ensure to not execute anything anymore in this point of time

hawkbit-bot commented 3 weeks ago

Can one of the admins verify this patch?