JSR 352重新开始工作? [英] JSR 352 Restarting a job?

查看:146
本文介绍了JSR 352重新开始工作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当重新启动工作,只有失败的分区再次运行。怎样才能再次运行顺利完成任务?

When a job is restarted, only the failed partitions are run again. How do i run a successfully completed job again?

有没有再次提交作业并重新启动作业之间的差异?

Is there a difference between submitting a job again and restarting the job?

我使用WebSphere上自由的IBM实现JSR 352的。

i am using IBM's implementation of JSR 352 on Websphere Liberty.

推荐答案

Java的批量设计,以便当您重新启动作业实例,继续执行你离开的地方(在previous失败或停止执行)。

Java Batch is designed so that when you restart a job instance, execution continues where you left off (in the previous failed or stopped execution).

所以,通常这意味着两件事情:

So typically this means two things:


  1. 在工作,你在$ P $开头pviously-失败的步骤(或在该作业停止的步骤)。

  2. 在步骤中,首先使用批处理容器保存检查点值定位输入光标。

所以,如果在初始执行你完成的步骤1 的失败则在第二步:的达到创纪录的4123#,并且通常每检查点100个记录,然后重新启动你在开始的第二步:的达到创纪录的4100#执行。

So if on the initial execution you completed step1 then failed at step2 at record #4123, and are checkpointing every 100 records, then on a restart you'd typically begin executing at step2 at record #4100.

在某些情况下,有必要执行的步骤1 的就重启,以及,在执行前的第二步:的地方工作了previously失败,有一个选项获得这一行为为好。

In some cases it's necessary to execute step1 on the restart as well, before executing step2 where the job had previously failed, and there is an option to get this behavior as well.

这是典型的提交/重复开始工作,往往一个时间表。

It is typical to submit/start a job repeatedly, often on a schedule.

在一批规范的条款,新的 JobInstance 创建的每个工作启动时。这时初始的 JobExecution JobInstance 创建。如果执行不运行完成,实例可以重新开始,此时第二的 JobExecution 是该 JobInstance 创建。

In the terms of the batch specification, a new JobInstance is created each time a job is started. At this time the initial JobExecution for this JobInstance is created. If the execution does not run to completion, the instance may be restarted, at which time a second JobExecution is created for this JobInstance.

所以重新启动使用previous的检查站和执行历史的 JobExecution 而开始开始用干净的石板。

So a restart uses the checkpoints and execution history of the previous JobExecution while the start begins with a clean slate.

这篇关于JSR 352重新开始工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆