def stop_old_tasks
      # only works when deployment is blocking
      return unless @options[:wait]

      Thread.new do
        stop = Ufo::Stop.new(@service, @options.merge(mute: true))
        while true
          stop.log "checking for old tasks and waiting for 10 seconds"
          stop.run
          sleep 10
        end
      end
    end
def stop_old_tasks
      # only works when deployment is blocking
      return unless @options[:wait]

      Thread.new do
        stop = Ufo::Stop.new(@service, @options.merge(mute: true))
        while true
          stop.log "checking for old tasks and waiting for 10 seconds"
          stop.run
          sleep 10
        end
      end
    end
Start a thread that will poll for ecs deployments and kill of tasks
 in old deployments.
 This must be done in a thread because the stack update process is blocking.