Skip to content

Instantly share code, notes, and snippets.

@masartz
Created December 12, 2009 15:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save masartz/254932 to your computer and use it in GitHub Desktop.
Save masartz/254932 to your computer and use it in GitHub Desktop.
#!/usr/bin/perl
use strict;
use warnings;
use Qudo;
my $qudo = Qudo->new(
driver_class => 'Skinny',
databases => [+{
dsn => 'dbi:mysql:qudo',
username => 'root',
password => '',
}],
manager_abilities => [qw/ MyApp::Worker::Santa /],
);
$qudo->manager->register_plugins(qw/MyApp::Worker::Plugin::PreMessage/);
$qudo->manager->global_register_hooks(qw/Qudo::Hook::Serialize::JSON/);
$qudo->work;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment