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

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.

主站蜘蛛池模板: 云阳县| 文化| 霍山县| 黎川县| 都兰县| 瑞丽市| 澄城县| 普洱| 钟祥市| 荃湾区| 闵行区| 丽江市| 姚安县| 维西| 尉氏县| 余姚市| 西乡县| 泰安市| 息烽县| 大英县| 钦州市| 保靖县| 什邡市| 泸西县| 天峻县| 哈密市| 娄烦县| 东乡县| 潮安县| 菏泽市| 太仆寺旗| 通州市| 古丈县| 博野县| 冀州市| 甘孜县| 宜州市| 合作市| 永吉县| 沾化县| 白朗县|