RetryFlowFile 2025.10.2.19

バンドル

org.apache.nifi | nifi-standard-nar

説明

FlowFiles passed to this Processor have a 'Retry Attribute' value checked against a configured 'Maximum Retries' value. If the current attribute value is below the configured maximum, the FlowFile is passed to a retry relationship. The FlowFile may or may not be penalized in that condition. If the FlowFile 's attribute value exceeds the configured maximum, the FlowFile will be passed to a' retries_exceeded 'relationship. WARNING: If the incoming FlowFile has a non-numeric value in the configured'Retry Attribute 'attribute, it will be reset to'1 '. You may choose to fail the FlowFile instead of performing the reset. Additional dynamic properties can be defined for any attributes you wish to add to the FlowFiles transferred to' retries_exceeded'. These attributes support attribute expression language.

タグ

FlowFile、再試行

入力要件

REQUIRED

機密動的プロパティをサポート

false

プロパティ

プロパティ

説明

数値以外の上書きで失敗

FlowFile に 'Retry Attribute' で定義された属性がすでにあり、それが 数字 *でない* 場合、その値を '1' にリセットする代わりに、 FlowFile を失敗させます。

maximum-retries

retries_exceeded'関係に渡される前に、 FlowFile を再試行できる最大回数。

penalize-retries

'true' にセットすると、この Processor は入力 FlowFiles を 'retry' 関係に渡す前にペナルティを与えます。これは「retries_exceeded」関係には適用されません。

retry-attribute

FlowFile の現在の再試行回数を含む属性名。WARNING: もしその名前が、 FlowFile にすでにある、数値を含まない属性と一致する場合、プロセッサーはその属性を'1'で上書きするか、構成に基づいて失敗します。

reuse-mode

再試行 FlowFile が、 FlowFile を受信したインスタンスと異なる再試行 UUID を持つ場合、プロセッサーがどのように動作するかを定義します。これは一般的に、このプロセッサーの以前のインスタンスで再試行に成功した後、属性がリセットされなかったことを意味します。

リレーションシップ

名前

説明

failure

プロセッサーは、「再試行属性」に数値以外の値を指定すると、その値を「1」にリセットする代わりに失敗となるように構成されています。これで限定的なフィードバック・ループは即座に終了します。また、 'Maximum Retries' にIntegerに解決されない属性式言語が含まれている場合も含まれます。

retries_exceeded

入力 FlowFile が構成された最大リトライ回数を超えたため、このリレーションシップを入力プロセッサーに戻して制限付きフィードバックループを終了させないでください。

retry

入力 FlowFile が構成された最大リトライ回数を超えていない場合、このリレーションシップを入力プロセッサーに戻し、限定的なフィードバックループを作成します。

属性の書き込み

名前

説明

再試行属性

ユーザー定義の再試行属性は、現在の再試行回数で更新されます。

再試行属性 .uuid

最後にどのプロセッサーが FlowFile を再試行したかを決定する.uuidを持つユーザー定義の再試行属性。