-
-
Save anonymous/2e851cc3789ac55c00cf5f2dad29a092 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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