Durable Orchestration Inspection and Termination
CLI-first runbook to inspect, diagnose, or terminate stuck checkout saga instances in Order Orchestration.
Operational runbook for Order OrchestrationServicev1.0.0Order OrchestrationMessage-driven Finance workflow service that coordinates post-checkout basket cleanup and order notifications using Dura...PublishesPlaceOrderCommand, DeleteBasketCompleteCommand +3SubscribesUserCheckedOutIntegrationEvent, OrderStatusChangedToCompleteIntegrationEvent +3APIsAsyncAPIOwnercommerce-fulfillment-teamDiagramRepositoryOpen docs when a checkout saga stalls or enters a failed state.
Query orchestration instance status by OrderId
Use the Azure Functions Durable Task status endpoint (instance ID equals
OrderId):Terminal window curl -sS -H "x-functions-key: $FUNCTIONS_MASTER_KEY" \"$ORDER_ORCHESTRATION_URL/runtime/webhooks/durabletask/instances/$ORDER_ID?showHistory=true" | jq '{runtimeStatus, customStatus, createdTime, lastUpdatedTime}'Terminate a stuck instance
If an instance is permanently stuck after manual remediation of Order APIServicev1.0.0Order APIAuthenticated Ordering service for Buyer profiles and the Order lifecycle, creating Orders from baskets, snapshotting pr...PublishesGetBasketGrpc, GetBookGrpc +5SubscribesCreateOrder, CompleteOrder +11APIsOpenAPI, AsyncAPI, Carrier Service LevelsOwnercommerce-fulfillment-teamDiagramRepositoryOpen docs and Basket APIServicev1.0.0Basket APIInternal HTTP and gRPC service for managing customer-scoped shopping baskets, Catalog price enrichment, and post-checkou...PublishesGetBookGrpc, GetBooksGrpc +2SubscribesCreateBasket, UpdateBasket +4APIsOpenAPI, AsyncAPIOwnercommerce-fulfillment-teamDiagramRepositoryOpen docs, terminate it cleanly:
Terminal window curl -sS -X POST -H "x-functions-key: $FUNCTIONS_MASTER_KEY" \"$ORDER_ORCHESTRATION_URL/runtime/webhooks/durabletask/instances/$ORDER_ID/terminate?reason=ManualOperatorIntervention"