-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Caching the task object means it will survive long enough for Minion to clean it up entirely using `POSIX::_exit(0)`. Since this is an abrupt, immediate exit, things are not able to be cleaned up (like database connections, resulting in spurious log messages). Committed from Perl Toolchain Summit 2018. Thanks @toddr and @atoomic for helping to debug this issue!
- Loading branch information
Showing
3 changed files
with
16 additions
and
3 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,4 +41,10 @@ sub run { | |
return $self->exit_code; | ||
} | ||
|
||
our $DESTROYED = 0; | ||
sub DESTROY { | ||
$DESTROYED++; | ||
} | ||
|
||
1; | ||
|