官术网_书友最值得收藏!

Chains and steps

As mentioned earlier, a chain consists of multiple steps that are logically connected together. We cannot say anything about the behavior of these steps in the job chain. In order to know when these steps are going to be executed, we have to know what rules are applied to them. All steps have a name. We are going to reference these names of steps in our rules, which we will define later. Now, let's return to the backup example and list the steps there:

  1. SHUTDOWN: Take the database offline in a clean way.
  2. COPYFILES: Copy the database files to a remote location.
  3. STARTUP: Start up the database for a normal operation.

Without rules, nothing much will happen. The Scheduler will be looking for a step to start, but will be unable to find it. As soon as the Scheduler finds itself in a situation where it is given a chain and it cannot determine what to do next, the job gets a special job status—CHAIN_STALLED. This status means that the Scheduler does not know how to handle the chain. The chain will probably remain in this state indefinitely, unless we manually take over. If we ever find our job in such a state, it means that we have not taken into account all possible combinations of outcomes that the steps can have. Defining a good set of rules will mostly prevent us from getting in this state. Let's go to the rules now.

主站蜘蛛池模板: 错那县| 永济市| 浦县| 弥勒县| 吉林省| 鹤庆县| 洞口县| 微博| 冀州市| 兴和县| 徐汇区| 西峡县| 老河口市| 菏泽市| 凤庆县| 绵阳市| 崇州市| 名山县| 尖扎县| 白银市| 铅山县| 莫力| 周至县| 枝江市| 兰溪市| 饶河县| 青河县| 阜阳市| 嘉义市| 涟源市| 法库县| 东兰县| 平阳县| 米泉市| 曲沃县| 玉林市| 和林格尔县| 楚雄市| 浦东新区| 德令哈市| 建平县|