Skip to content

Instantly share code, notes, and snippets.

/oomkill.pl Secret

Created March 23, 2017 14:53
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 anonymous/2e851cc3789ac55c00cf5f2dad29a092 to your computer and use it in GitHub Desktop.
Save anonymous/2e851cc3789ac55c00cf5f2dad29a092 to your computer and use it in GitHub Desktop.
$self->minion->on(
worker => sub {
my ($minion, $worker) = @_;
$worker->on(
dequeue => sub {
my ($worker, $job) = @_;
$job->on(
start => sub { path('/proc', $$, 'oom_score_adj')->spurt('200') });
}
);
}
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment