OxL Справочник OxL
РусскийEnglish

warning pipeline-idempotency

warning Стандарт: [§10.6]

Вызов rpc без `@idempotent` в надёжном (`durable`) шаге пайплайна.

What it means#

A durable step and all steps after it are repeated on another node after a failure (at-least-once). An rpc without @idempotent may then run twice.

Example#

oxl✓ проверяется в CI
service Mail { rpc send(to: str) -> () }
impl Mail { rpc send(to) { } }
pipeline notify(to: str) {
  Mail.send(to)  durable   // <- pipeline-idempotency
}
error
pipeline-idempotency

How to fix#

Mark the rpc @idempotent, or remove durable from the step.

See also#

OxL 1.0.0-beta · Версия документации 1.0.0-beta© OxwaldLink · сгенерировано из Стандарта, исходников std и руководства