From 6f0c8ceedf6806f56d9c0ddb43a6d044dfcc2632 Mon Sep 17 00:00:00 2001 From: Michael Buckley Date: Fri, 17 Nov 2023 16:41:05 -0500 Subject: [PATCH] layout --- .../docs/server_jpa_batch/batch2_states.md | 21 +++++++++---------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/hapi-fhir-docs/src/main/resources/ca/uhn/hapi/fhir/docs/server_jpa_batch/batch2_states.md b/hapi-fhir-docs/src/main/resources/ca/uhn/hapi/fhir/docs/server_jpa_batch/batch2_states.md index 71801cd6eed..57bef382a06 100644 --- a/hapi-fhir-docs/src/main/resources/ca/uhn/hapi/fhir/docs/server_jpa_batch/batch2_states.md +++ b/hapi-fhir-docs/src/main/resources/ca/uhn/hapi/fhir/docs/server_jpa_batch/batch2_states.md @@ -47,6 +47,7 @@ stateDiagram-v2 title: Batch2 Job Work Chunk state transitions --- stateDiagram-v2 + [*] : state READY state GATE_WAITING state POLL_WAITING @@ -58,29 +59,27 @@ stateDiagram-v2 state FAILED state COMPLETED direction LR - [*] --> READY : on create - normal step - [*] --> GATE_WAITING : on create - gated step - [*] --> POLL_WAITING : on create - polling step - GATE_WAITING --> READY : on prior step completion - POLL_WAITING --> READY : on time expired (maint.) - READY --> QUEUED : placed on kafka (maint.) + [*] --> READY : on create - normal or step + [*] --> GATE_WAITING : on create - gated step + GATE_WAITING --> READY : on prior step completion + POLL_WAITING --> READY : on time expired (maint.) + READY --> QUEUED : placed on kafka (maint.) %% worker processing states - QUEUED --> on_receive : on deque by worker + QUEUED --> on_receive : on deque by worker on_receive --> IN_PROGRESS : start execution - IN_PROGRESS --> execute: execute execute --> ERROR : on re-triable error execute --> COMPLETED : success\n maybe trigger instance first_step_finished execute --> FAILED : on unrecoverable \n or too many errors - execute --> POLL_WAITING: on poll retry (use named exception?) + execute --> POLL_WAITING: on poll retry %% temporary error state until retry ERROR --> on_receive : exception rollback\n triggers redelivery %% terminal states - COMPLETED --> [*] - FAILED --> [*] + COMPLETED --> [*] + FAILED --> [*] ``` Work