Skip to content

Commit

Permalink
Improve workers by calling srand() after starting a new job process
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Nov 10, 2023
1 parent 94bb774 commit 2a78ea5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Changes
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@

10.26 2023-02-03
10.26 2023-11-10
- Added type information to worker status.
- Improved workers by calling srand() after starting a new job process.

10.25 2022-06-24
- Added workers field to stats methods in Minion and Minion::Backend::Pg.
Expand Down
1 change: 1 addition & 0 deletions lib/Minion/Job.pm
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ sub start {
Mojo::IOLoop->reset;
local $SIG{CHLD} = local $SIG{INT} = local $SIG{TERM} = local $SIG{QUIT} = 'DEFAULT';
local $SIG{USR1} = local $SIG{USR2} = 'IGNORE';
srand;

# Child
if (defined(my $err = $self->execute)) { $self->fail($err) }
Expand Down

0 comments on commit 2a78ea5

Please sign in to comment.