call flock with node.js? -


i have cron job run node.js scripts.

want use flock lock file make sure cron jobs not overlapped.

any module doing file locking ?

or should call in child process ?

or should not file locking ?

sorry, new , not sure file locking async env node. thanks

see flock function in fs-ext package: https://github.com/baudehlo/node-fs-ext


Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -