dispatcher: Only mark running tasks as orphaned.
dispatcher: Only mark running tasks as orphaned.

Signed-off-by: Andrea Luzzardi <442ffe3ffbfd024afcf0b7f8b108d05bca3aae43@gmail.com>

AliyunContainerService/swarmkit,diogomonica/swarmkit,sungwonh/swarmkit,elifa/swarmkit,jlhawn/swarmkit,sungwonh/swarmkit,AliyunContainerService/swarmkit,alyyousuf7/swarmkit,Noyan759/swarmkit,cheyang/swarmkit,dperny/swarmkit-1,RenaudWasTaken/swarmkit,alyyousuf7/swarmkit,diogomonica/swarmkit,Noyan759/swarmkit,RenaudWasTaken/swarmkit,allencloud/swarmkit,allencloud/swarmkit,jlhawn/swarmkit,docker/swarmkit,dperny/swarmkit-1,docker/swarmkit,cheyang/swarmkit,elifa/swarmkit,fate-grand-order/swarmkit,fate-grand-order/swarmkit