amphp / parallel

An advanced parallelization library for PHP, enabling efficient multitasking, optimizing resource use, and application responsiveness through multiple CPU threads.
MIT License
763 stars 62 forks source link

Reopen Issue: Zombie .sock Files Not Being Deleted in CLI Mode #202

Closed medy36 closed 1 week ago

medy36 commented 1 month ago

Hi team,

I would like to reopen the issue regarding the zombie .sock files not being correctly deleted when using amphp/parallel.

Background: I am running parallel tasks using amphp/parallel in two different environments:

After a recent update to the amphp/parallel library, I noticed an improvement where the .sock files were correctly deleted in the web version. However, the CLI version still leaves .sock files in the /tmp folder, which eventually leads to issues.

Steps to Reproduce:

I suspect that the issue might be related to the way "LocalIpcHub" handles cleanup operations differently in web and CLI environments. Any insights or suggestions on how to resolve this issue for the CLI environment would be greatly appreciated.

peteroxil commented 1 month ago

I've had a hard to trace zombie sock problem - I hadn't noticed the connection with running via CLI - good spot!

medy36 commented 1 month ago

Hi @trowski, would be very helpful if you can have a look at this case please. thank you

medy36 commented 1 month ago

Helle @kelunik, Can you have a look at this issue please?

medy36 commented 1 week ago

i am going to reopen the subject with more details about the situation.