Skip to content

Instantly share code, notes, and snippets.

View prg's full-sized avatar

Patrick Goldmann prg

View GitHub Profile
@prg
prg / Controller.pm
Created March 6, 2017 15:26
Minion::Notifier
sub websocket {
my $c = shift;
$c->minion->backend->pg->pubsub->json('foo')->listen(foo => sub {
my ($pubsub, $payload) = @_;
my $job = $c->minion->job($payload->{id});
$c->send({ json => $job->info });
});
}

Keybase proof

I hereby claim:

  • I am prg on github.
  • I am prg (https://keybase.io/prg) on keybase.
  • I have a public key whose fingerprint is C57C 93A9 680E 4719 8B5C 5970 9890 6CFF 5F25 EEBE

To claim this, I am signing this object: