Improve draining for tasks in DEACTIVATING state
-
Use
ListTasksandDescribeTasksto get a list of running tasks
instead of relying onRunningTasksCountto be able
to handle better tasks inDEACTIVATING,DEPROVISIONING, etc. states -
Update dependencies