elastic-job-spring-boot-starter icon indicating copy to clipboard operation
elastic-job-spring-boot-starter copied to clipboard

Elastic-Job Spring Boot 自动集成,只需要一个注解即可发布Job

Results 13 elastic-job-spring-boot-starter issues
Sort by recently updated
recently updated
newest added

Failed to instantiate [com.dangdang.ddframe.job.lite.spring.api.SpringJobScheduler] 配置OK的

@ElasticJobConf(name = "MySimpleJob", cron = "0/10 * * * * ?", shardingTotalCount = 2, shardingItemParameters = "0=0,1=1", description = "简单任务") System.out.println("分片参数:" + shardParamter); 分片参数 一直是1

com.xiaoju.automarket.elasticjobstarter.dynamic.service.JobService#monitorJobRegister 方法的实现里面有一行获取监听到节点的配置。 String config = new String((byte[])client.getData().forPath(data.getPath() + "/config")); 这一行直接去读取config节点。 看了下jobx的源码里面新任务注册的逻辑。 com.xiaoju.automarket.elastic.job.lite.internal.config.ConfigurationService#persist com.xiaoju.automarket.elastic.job.lite.internal.storage.JobNodeStorage#replaceJobNode com.xiaoju.automarket.elastic.job.reg.base.RegistryCenter#persist client.create().creatingParentsIfNeeded().withMode(CreateMode.PERSISTENT).forPath(key, value.getBytes(Charsets.UTF_8)); 创建/xxx/MyJob/config节点之前,会先创建/xxx/MyJob节点。 在极端情况下,/xxx/MyJob创建之后,/xxx/MyJob/config节点创建之前,监听逻辑读取config节点报错。 org.apache.zookeeper.KeeperException$NoNodeException: KeeperErrorCode = NoNode for /xxx/MyJob/config curator里面的创建任务节点相关代码见 org.apache.curator.framework.imps.CreateBuilderImpl#pathInForeground 会根据org.apache.curator.framework.imps.CreateBuilderImpl#createParentsIfNeeded判断是否创建父节点,如果该值为true,会先创建父节点,再创建子节点。

**A,B两个实例 ,A实例启动后正常执行任务,随后B实例启动报错,A实例报错如下:** java.lang.IllegalStateException: instance must be started before calling this method 2020-10-09 18:28:20.917 ERROR 1388 --- [tor-TreeCache-0] o.a.c.framework.recipes.cache.TreeCache : com.dangdang.ddframe.job.reg.exception.RegException: java.lang.IllegalStateException: instance must be started before calling this method at...

有没有像quartz一样的可以手动立即触发的功能

1.0.5版本的release的pom里面版本写的是1.0.4,我这边有些地方会将他识别成1.0.4版本,最终1.0.5版本的会提示找不到

application.yml中配置任务信息,应用起不来,配置如下 elastic: job: job1: cron: * 0/5 * * * ? description: 任务1 disabled: false failover: true jobParameter: 1800000,300000 misfire: false monitorExecution: false overwrite: true shardingItemParameters: 0=0,1=1 shardingTotalCount: 1

跟springboot budduo集成 jar 包冲突

支持在一个任务类上配置多个 @ElasticJobConf 注解,根据jobParameter执行不同的任务

您好,使用中发现的小问题 1 代码位置: ElasticJobConf conf = (ElasticJobConf)clz.getAnnotation(ElasticJobConf.class); 使用cglib的时候直接是代理类,就取不到 这个注解 2 代码位置: String jobTypeName = clzz.getInterfaces()[0].getSimpleName(); 如果任务类抽出一层父类,父类实现任务接口,子类继承父类,就无法直接取到获取到 interfaces 了