Comments (5)
目前quartz设定的是用1个线程池
result.put("org.quartz.threadPool.threadCount", "1");
代码在JobScheduler, 162行
作业不会同时启动,如果上个作业未完成下个作业不会启动,只是会记录misfire。
这样会否存在你说的stackOverFlowException的可能
from shardingsphere-elasticjob.
我看代码misfire应该是分片维度的,不是调度批次维度的,如果2台机器【1,2】,【3,4】,第一次调度后【1,2】数据少执行较快,【3,4】数据较多执行较慢,达到第二次调度时间时可能上次【3,4】还没执行完,这时候第二次调度的时候【1,2】会继续运行,但是【3,4】设置了misfire
from shardingsphere-elasticjob.
是的,是担心一个分片执行不完整个下次作业都不能执行。如果想讨论misfire的事情,可以另开启一个issue
from shardingsphere-elasticjob.
while (executionService.hasRunningItems()) {
log.debug("Elastic job: sleep short time until other job completed.");
BlockUtils.waitingShortTime();
}
假设上一个job,因为ConnectionLoss异常,调用jobFacade.registerJobCompleted失败,导致没有清空sharding/running下的临时节点,但因为不会会话超时,所以临时节点一直存在,那么下一个job将会在这个while中死循环
from shardingsphere-elasticjob.
Expired
from shardingsphere-elasticjob.
Related Issues (20)
- SnakeYAML 2.1+ is not compatible with ElasticJob Lite HOT 4
- Supports building project via JDK21 HOT 1
- version 3.0.2+ cause Spring's transaction to fail. HOT 1
- [DISCUSS] Release Plan of ElasticJob 3.0.4 HOT 1
- version 2.1.5 控制台很卡,查不出数据来,如何解决? HOT 2
- Dependency not found :elasticjob-spring-boot-starter HOT 1
- 服务重启后,控制台任务都是已下线的怎么办,而且正常调度结束的任务后台也查询不到
- 定时任务提前执行
- zk集群删除无效数据 HOT 1
- elasticjob 可以计划去掉Zookeeper吗,就像高版本kafka去掉Zookeeper一样? HOT 2
- Unit test `DefaultJobClassNameProviderTest#assertGetLambdaJobName` fails on OpenJDK 21 HOT 1
- 动态创建任务服务重启后未过时的任务可以重新启动吗?
- Elastic-job 有没有任务队列功能?如果有那怎么控制最大注册任务并发数量?
- Does Elastic-job support task queues? If yes, how to control the maximum number of concurrent registration tasks in queue?
- Q: How to set jobs configuration dynamically from database?
- When the ZooKeeper leader node restarts or the ZooKeeper process freezes, the session expires. There is a possibility that the instance enters the shutdown state. As a result, the instance node scheduling stops. The instance node can be restored only by restarting the instance node.
- jobShardingStrategyType: ROUND_ROBIN is not available
- 任务正常跑一段时间,突然某个任务不再执行,版本2.1.5 HOT 1
- Are there any plans to support grayscale tasks?
- 在使用elasticjob-lite-spring-boot-starter开发手动触发任务时,报错,找不到指定的bean
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from shardingsphere-elasticjob.