add process with no listener
This commit is contained in:
1 parent
4ae7af091a
commit
979c1155c2
2 files changed
+8
-1
No files matched your search
@@ -1,2 +1,3 @@
|
|||||||
|
cron: node worker.js
|
||||||
web: node web.js
|
web: node web.js
|
||||||
worker: node web.js
|
worker: node worker.js
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
function worker() {
|
||||||
|
console.log('sleeping for 60 seconds');
|
||||||
|
setTimeout(worker, 60 * 1000);
|
||||||
|
}
|
||||||
|
|
||||||
|
worker();
|
||||||
Reference in new issue
Block a user