parallel icon indicating copy to clipboard operation
parallel copied to clipboard

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

Open medy36 opened this issue 8 months ago • 3 comments

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:

  • Web
    
  • CLI (via a cron job)
    

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:

  • Run parallel tasks using amphp/parallel in a web environment.
    
  • Observe that .sock files are deleted correctly.
    
  • Run the same parallel tasks in a CLI environment (e.g., via a cron job).
    
  • Observe that .sock files are not deleted and accumulate in the /tmp folder.
    

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.

medy36 avatar Jun 11 '24 09:06 medy36