test: integrate reliable event recovery and receiving evidence

This commit is contained in:
2026-10-02 20:14:17 +08:00
parent d0df738bba
commit 4b531c7e22
17 changed files with 1527 additions and 37 deletions
@@ -229,6 +229,10 @@ export async function run(context) {
packageCount: Number(item?.packageCount), picked: Number(item?.pickedPackageCount) })),
})
const operationsBeforeSignature = JSON.stringify(operationsBefore || [])
if (typeof context.context?.beforeLoadingComplete === 'function') {
await context.context.beforeLoadingComplete({ marker: context.marker, customerId: tenantId,
loadingPlanId, containerBookingId })
}
const completeAttempts = [1, 2].map((index) => ({
body: {
expectedTaskVersion: Number(taskBefore.version),