analytics-php icon indicating copy to clipboard operation
analytics-php copied to clipboard

Segment tracking doesn't work with Laravel Queues

Open baj84 opened this issue 3 years ago • 0 comments

This has been an issued noted by a few people.

See this thread: https://laracasts.com/index.php/index.php/discuss/channels/laravel/queuework-not-working-but-queuelisten-did?page=1&replyId=573027

In the segment documentation it says: "Because PHP is a single threaded and shared-nothing environment, we can’t use a queue in a separate thread or a connection pool to flush messages"

Maybe this has something to do with it?

My work around was to remove all tracking out of queues - would be great to have a real fix for this though.

baj84 avatar Jul 22 '22 22:07 baj84