meetings / gearsloth

Gearman job persistence and delayed execution system
MIT License
2 stars 0 forks source link

Clearing old lock files #80

Closed tstarck closed 9 years ago

tstarck commented 10 years ago

In fs.js there is a comment:

// TODO remove lock files that are older than 15 seconds to defend against previous crashes

Should old lock files be cleared when adapter is first initialized?

amv commented 9 years ago

No. There can be multiple processes spun up and if a new process always clears lock files, mayhem ensues.

There should be a garbage collection mechanism for this, just as there should be one for the unused directories in the file storages.