Releases: shudingbo/sdb-schedule
Releases · shudingbo/sdb-schedule
可扩展性增强
针对 模块的 可嵌入性 做了下列修改
- 增加配置参数
- logger,统一logger输出,方便嵌入其它组件
- redis驱动
- instanse, 可以使用存在的 redis 连接实例
- sc构造函数,增加参数 parModule,传入对象,方便模块使用,这个对象会传入各个 Job,方便Job使用. 可以在 .js 里通过sc.app,调用parModule的数据
const g_redis = {
ins:null // required, redis instanse
};
cfg_opt:{
instanse: g_redis
}
Increased module scalability, easier to use by other modules.
- Configuration modify
- logger, at root configure, unified logger output, easy to embed other components
- redis drv config
- instanse, at redis configure, Existing redis connection instances.
- sc constructor, add parModule parameter, pass in object for convenience of module, this object will pass in each Job for convenience of Job. Data of parModule can be called through sc.app in < Job >.js
first release
1.1.5 Fix Bug