# lzmh_dsp_timer **Repository Path**: heiping/lzmh_dsp_timer ## Basic Information - **Project Name**: lzmh_dsp_timer - **Description**: elastic-job分布式定时任务实现: 实现功能(定时去跑),lzmh_dsp_timer 是根据公司业务编写的微服务:主要用来每5分钟执行一次,去检测数据变化,然后执行相关逻辑。 以后有类似的需求,可以参见模仿该工程,具体方法下面会介绍。 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2019-07-22 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # lzmh_dsp_timer #### 介绍 elastic-job分布式定时任务实现: 实现功能(定时去跑),lzmh_dsp_timer 是根据公司业务编写的微服务: 主要用来每5分钟执行一次,去检测数据变化,然后执行相关逻辑。 以后有类似的需求, 可以参见模仿该工程,具体方法下面会介绍。 #### 软件架构 1.elastic Job 2.spring Cloud #### 安装教程 1. 将该工程下载下来,然后仿照改工程的模块去实现,新的功能模块 #### 使用说明 1. 在config.simple 目录新新建一个 xxxConfig 类(类比其他的Config)修改配置信息 注意返回ElasticJob 对象,要在步骤2中ddobs.simple 中新建xxxJon 2.ddobs.simple 中新建xxxJob(类比其他xxxJob) 修改对应的业务代码 3.修改bootstrap.yml 中的Job 的参数配置: # job参数配置 job: #广告计划 -初审、复审不通过- 1天后清库存 StatisticalAuditFailureJob: #Cron表达式 cron: 0 0/5 * * * ? # 作业分片总数 shardingTotalCount: 1 description: 广告计划 -初审、复审不通过- 1天后清库存 overwrite: true disabled: true #### 参与贡献 1. Fork 本仓库 2. 新建 Feat_xxx 分支 3. 提交代码 4. 新建 Pull Request #### 码云特技 1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md 2. 码云官方博客 [blog.gitee.com](https://blog.gitee.com) 3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解码云上的优秀开源项目 4. [GVP](https://gitee.com/gvp) 全称是码云最有价值开源项目,是码云综合评定出的优秀开源项目 5. 码云官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help) 6. 码云封面人物是一档用来展示码云会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)