From f0e4f85733c447d72913e0ceca19d5f783c5f01f Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Mon, 12 Nov 2012 22:35:32 +0000 Subject: Removed now the worker has a --flush argument. --- util/empty-queue | 33 --------------------------------- 1 file changed, 33 deletions(-) delete mode 100755 util/empty-queue (limited to 'util') diff --git a/util/empty-queue b/util/empty-queue deleted file mode 100755 index 5f84d53..0000000 --- a/util/empty-queue +++ /dev/null @@ -1,33 +0,0 @@ -#!/usr/bin/ruby -# -# Empty the beanstalk-queue. -# -# This is useful if you're aborting runs, or messing with the parser. -# -# Steve -# -- -# - - - -require 'beanstalk-client' - -beanstalk = Beanstalk::Pool.new(['localhost:11300']) - -# -# Run until we receive a timeout-error - because retrieval of jobs failed. -# -while(true) - begin - puts "\nWaiting for job.." - job = beanstalk.reserve(1) - id = job.id - puts "\tDeleted job #{id}" - job.delete - rescue Beanstalk::TimedOut => ex - puts "Queue is empty" - exit(0) - end -end - - -- cgit v1.2.1