Oh! I searched in both the forum and Jens’ plugin repo, and I didn’t find any queue, so I thought nothing existed yet. Not that it’s a competition, ofcourse, or that there can only be one
As for not making readme’s in time: I turn that around. At first, my plugin was only a readme, and once I described how I thought it should work, I wrote the code to make it work. Readme-driven-development, is that a thing? I like the approach.
Your plugin is a bit messy in some points. There is a lot of indentation going on, an not much OOP. For example, if you use
getopt() within the Worker class, that means you can not really use that class outside of the command line. And I haven’t tried it out, but things like
$count < count($files)+2 look suspicious to me. What two files are you ignoring there? And what if the users has more or less files that should be ignored?
(I don’t mean this as shade! Just some points where I think your plugin could improve.)
On the other hand, I think my plugin could indeed use a worker that is available as Deamon or via Supervisor. I have no experience with those, so I didn’t made that part yet I should/could look into flock() too.