Skip to content

LockableTrait Causes error when running as Cronjob #27356

@boscho87

Description

@boscho87

Symfony version(s) affected 3.4.X

Description
The LockableTrait uses Semaphores of the System, to Lock tasks, if lock is called with a user generated id $this->lock($uuid) the Semaphore will never be released. When the Sempahore store is full this causes the error "no space left on device"

How to reproduce

  1. Create a command use the LockableTrait $this->lock($uuid) at the beginning $this->lock->release()
  2. create a shell script with a while loop that runs for 45 seconds.
  3. Create a cronjob that every minute will execute the shell sciprt

Possible Solution
no idea

Additional context
https://gist.github.com/boscho87/5b8852bc9ced7e9199a7f593acc85903

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions