summaryrefslogtreecommitdiff
path: root/bin/custodian-queue
AgeCommit message (Collapse)Author
2015-03-09Don't use parenthesis aroudn conditions in an if.Steve Kemp
2015-03-09Do not use parentheses for method calls with no arguments.Steve Kemp
This is neater. Flagged by rubocop
2015-03-09Avoid redundent ".to_s" methods.Steve Kemp
These are not required if the argument is string already, or has a _to_s method which will be automatically invoked by magic.
2015-03-09Use long-namesSteve Kemp
Instead of "$0" use $PROGRAM_NAME, instead of $! use "$LOAD_PATH". This is more explicit and less-magic. Flagged by rubocop
2015-02-05Simplify the flushing of queues.Steve Kemp
Now that we've moved to using redis by default the handling of queue-flushing needs to change. We can simply get rid of the busy-wait and run a redis "del" operation. With that in mind we've moved the flushing logic to our queue abstraction layer, and simplified our queue-helper script.
2015-02-04Hint to ruby that rubygems should be loaded.Steve Kemp
This allows our redis-library to be used.
2015-01-21Don't hard-wire redis as the queue-type.Steve Kemp
Read it from the configuration-file and don't expose the server flag which is now bogus.
2015-01-19Updated to use our queue-abstraction.Steve Kemp
This means we can queue/dequeue to either Redis or Beanstalkd.
2015-01-13Avoid hard-wiring 1.8 rubySteve Kemp
2013-04-23 Allow --queue to specify the beanstalkd tube.Steve Kemp
2012-12-06 Updated documentation in a minor fashion.Steve Kemp
2012-12-06 The --monitor flag now allows a threshold to be specified, and noSteve Kemp
longer invokes mauvealert directly. Instead the exit code of the script will be used to report success/failure.
2012-11-26 Explicitly watch a "tube" - a named queue - to avoid stomping onSteve Kemp
anything else running under beanstalkd.
2012-11-23 Read the server address:port from the settings object. Along with the ↵Steve Kemp
filename if appropriate for logging.
2012-11-20 Updated case statements for ruby1.9Steve Kemp
2012-11-16 Link to the WIKI in the monitor testSteve Kemp
2012-11-15 Alert on >= 5000 jobs.Steve Kemp
2012-11-14 fixed name of script in help-textSteve Kemp
2012-11-14 Whitespace fixupSteve Kemp
2012-11-14 Added a monitor flag to alert if the queue was too highSteve Kemp
2012-11-14 Removed the flushing-action from custodian-dequeue and added it to theSteve Kemp
new helper tool