A workflow declared asynchronous cannot be launched and waited on
Asking to wait for a result the workflow has already said it will not deliver inline is a mistake worth catching before anything runs.
The rule
Normative: this is the rule
- A launch requesting a synchronous wait against a workflow declared asynchronous MUST be refused with 422 before any execution is created, so that no run is started and nothing is left behind.
- The refusal MUST carry the error code
ASYNC_DECLARED. - How a launch requests a synchronous wait is implementation-defined until a rule defines it.
Why
Rule identifiers are permanent and are never renumbered. Each implementation publishes its own standing against these rules; this specification does not.spec 1.0 · MAN-19 · changed in spec 1.1