Skip to content

honeydew-sc/Honeydew-Queue

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NAME

Honeydew::Queue - Manage Honeydew's nightly queue functionality

Build Status

VERSION

version 0.12

SYNOPSIS

use DDP;
my $hq = Honeydew::Queue->new;
p $hq->get_queues;

$hq->drop_nightly_queues;

DESCRIPTION

This module is a thin wrapper around Resque that implements Honeydew-specific queue functionality that we'd like.

ATTRIBUTES

resque

Optional: By default, we'll instantiate a Resque client for the one specified by Honeydew::Config; you can also pass in a Resque object of your choosing if you'd like to mock tests, or use your own Resque without specifying a config file. See the tests for how to do that - in particular, the before each section of Honeydew-Queue.t.

config

We expects an instance of Honeydew::Config; you can inject your own with the proper settings, but you're probably better served just giving us a resque object above.

METHODS

get_queues ()

Accepts no args; returns a hashref. The keys are the names of the queues, and the values are the size of each queue.

drop_nightly_queues ()

Accepts no args; returns this object for lack of anything better to do. There's no error handling in place. We'll look up the nightly queues from the local entry in our Honeydew::Config, and drop only the nightly ones. This is useful for resetting your queue to a clean state before starting a new batch of tests.

BUGS

Please report any bugs or feature requests on the bugtracker website https://github.com/honeydew-sc/Honeydew-Queue/issues

When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.

AUTHOR

Daniel Gempesaw gempesaw@gmail.com

COPYRIGHT AND LICENSE

This software is copyright (c) 2015 by Daniel Gempesaw.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

About

Manage Honeydew's nightly queue functionality

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages