-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Problem
Long running process with artisan commands just keep DB connections alive while it is running.
The problem can be easily fixed with a explicit call to DB::disconnect('connection-name'); but i need to add this to all commands.
This can be very dangerous because we can forget to add the code and because we need to edit existing code
Possible Fix
Pigeon could dispatch events to Laravel Event Bus before and after the message processing, then we can listen to this event in a classic Laravel Event listener.
Additional context
The resources kept open are very dangerous with blue green deployments just because we allocate 2x of resources for a few seconds while the container is being replaced to the new one.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request