teratask:定期任务执行器

时间:2021-05-03 04:08:10
【文件属性】:
文件名称:teratask:定期任务执行器
文件大小:8KB
文件格式:ZIP
更新时间:2021-05-03 04:08:10
JavaScript Teratask-定期和按需Node.js任务运行程序 依存关系 * Redis * TeraFoundation 任务执行 Tasks are defined as node.js modules. scheduler.schedule({ task_name: 'my_task', // String task identifier queue_name: 'task:queue', // Redis queue to watch for tasks postings task: tasks.MyTask, // Task implementation interval: 5000, // How often to wakeup the task and check the queue. (millisecond
【文件预览】:
teratask-master
----.gitignore(531B)
----Dockerfile(358B)
----package.json(259B)
----service.js(369B)
----LICENSE(655B)
----index.js(625B)
----README.md(576B)
----lib()
--------scheduler.js(10KB)
--------master.js(809B)
--------worker.js(1KB)
----config.json(837B)
----system_schema.js(448B)

网友评论