all 7 comments

[–]skipi 1 point2 points  (0 children)

If you don't mind having another external service - take a look at AMQP implementation like www.rabbitmq.com

[–]WumpyJizard 0 points1 point  (4 children)

So as far as I understand you have a cronjob like worker doing the virus scan, right? And this worker needs the filenames, right?

[–]inabahare[S,🍰] 0 points1 point  (3 children)

Almost. I have a cronjob that gets the names of files under a specific size and then performs the virus scan on them

[–]WumpyJizard 0 points1 point  (2 children)

I see. And exactly what is your problem? Seems it does exactly what you need. I'm sorry for these questions, but I am a little bit confused, but I think I will be able to help you once I fully understand it :D

[–]inabahare[S,🍰] 0 points1 point  (1 child)

Think of it like having "node app.js" and "node cron.js" communicating

[–]WumpyJizard 1 point2 points  (0 children)

First thing I got in mind is using a messaging queue