This is an automated email from the ASF dual-hosted git repository.

zhangliang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere-elasticjob.git


The following commit(s) were added to refs/heads/master by this push:
     new c8943f9  Update Misfire page (#1103)
c8943f9 is described below

commit c8943f90a60efb6713da41216a671ac144f3b563
Author: Liang Zhang <[email protected]>
AuthorDate: Fri Jul 17 17:13:27 2020 +0800

    Update Misfire page (#1103)
---
 docs/content/features/misfire.cn.md                |  34 +++++++++++++++++++++
 .../features/{misfired.en.md => misfire.en.md}     |   2 +-
 docs/content/features/misfired.cn.md               |   8 -----
 docs/static/img/misfire/job-misfire.png            | Bin 0 -> 48759 bytes
 docs/static/img/misfire/job-missed.png             | Bin 0 -> 41772 bytes
 docs/static/img/misfire/job.png                    | Bin 0 -> 77442 bytes
 6 files changed, 35 insertions(+), 9 deletions(-)

diff --git a/docs/content/features/misfire.cn.md 
b/docs/content/features/misfire.cn.md
new file mode 100644
index 0000000..8f1716b
--- /dev/null
+++ b/docs/content/features/misfire.cn.md
@@ -0,0 +1,34 @@
++++
+pre = "<b>3.5. </b>"
+title = "错过任务重执行"
+weight = 5
+chapter = true
++++
+
+ElasticJob 不允许作业在同一时间内叠加执行。
+当作业的执行时长超过其运行间隔,错过任务重执行能够保证作业在完成上次的任务后继续执行逾期的作业。
+
+## 概念
+
+错过任务重执行功能可以使逾期未执行的作业在之前作业执行完成之后立即执行。
+举例说明,若作业以每小时为间隔执行,每次执行耗时 30 分钟。如下如图所示。
+
+![定时作业](https://shardingsphere.apache.org/elasticjob/current/img/misfire/job.png)
+
+图中表示作业分别于 12:00,13:00 和 14:00 执行。图中显示的当前时间点为 13:00 的作业执行中。
+
+如果 12:00 开始执行的作业在 13:10 才执行完毕,那么本该由 13:00 触发的作业则错过了触发时间,需要等待至 14:00 的下次作业触发。
+如下如图所示。
+
+![错过作业](https://shardingsphere.apache.org/elasticjob/current/img/misfire/job-missed.png)
+
+在开启错过任务重执行功能之后,ElasticJob 将会在上次作业执行完毕后,立刻触发执行错过的作业。如下图所示。
+
+![错过作业重执行](https://shardingsphere.apache.org/elasticjob/current/img/misfire/job-misfire.png)
+
+在 13:00 和 14:00 之间错过的作业将会重新执行。 
+
+## 适用场景
+
+在一次运行耗时较长且间隔较长的作业场景,错过任务重执行是提升作业运行实时性的有效手段;
+对于未见得关注单次作业的实时性的短间隔的作业来说,开启错过任务重执行并无必要。
diff --git a/docs/content/features/misfired.en.md 
b/docs/content/features/misfire.en.md
similarity index 76%
rename from docs/content/features/misfired.en.md
rename to docs/content/features/misfire.en.md
index 2502553..6c37ba9 100644
--- a/docs/content/features/misfired.en.md
+++ b/docs/content/features/misfire.en.md
@@ -1,6 +1,6 @@
 +++
 pre = "<b>3.5. </b>"
-title = "Misfired"
+title = "Misfire"
 weight = 5
 chapter = true
 +++
diff --git a/docs/content/features/misfired.cn.md 
b/docs/content/features/misfired.cn.md
deleted file mode 100644
index e79bef2..0000000
--- a/docs/content/features/misfired.cn.md
+++ /dev/null
@@ -1,8 +0,0 @@
-+++
-pre = "<b>3.5. </b>"
-title = "错过任务重执行"
-weight = 5
-chapter = true
-+++
-
-TODO
diff --git a/docs/static/img/misfire/job-misfire.png 
b/docs/static/img/misfire/job-misfire.png
new file mode 100644
index 0000000..0f059f0
Binary files /dev/null and b/docs/static/img/misfire/job-misfire.png differ
diff --git a/docs/static/img/misfire/job-missed.png 
b/docs/static/img/misfire/job-missed.png
new file mode 100644
index 0000000..63110dc
Binary files /dev/null and b/docs/static/img/misfire/job-missed.png differ
diff --git a/docs/static/img/misfire/job.png b/docs/static/img/misfire/job.png
new file mode 100644
index 0000000..d16c615
Binary files /dev/null and b/docs/static/img/misfire/job.png differ

Reply via email to