fix(orchestrator): save checkpoint before async step (#12138)
This commit is contained in:
committed by
GitHub
parent
07252691c5
commit
31abba8cde
@@ -15,6 +15,7 @@ import {
|
||||
import { moduleIntegrationTestRunner } from "@medusajs/test-utils"
|
||||
import { WorkflowsModuleService } from "@services"
|
||||
import { asFunction } from "awilix"
|
||||
import { setTimeout as setTimeoutSync } from "timers"
|
||||
import { setTimeout as setTimeoutPromise } from "timers/promises"
|
||||
import "../__fixtures__"
|
||||
import {
|
||||
@@ -28,7 +29,6 @@ import {
|
||||
workflowEventGroupIdStep1Mock,
|
||||
workflowEventGroupIdStep2Mock,
|
||||
} from "../__fixtures__/workflow_event_group_id"
|
||||
import { setTimeout as setTimeoutSync } from "timers"
|
||||
import { createScheduled } from "../__fixtures__/workflow_scheduled"
|
||||
|
||||
jest.setTimeout(300000)
|
||||
@@ -97,9 +97,9 @@ moduleIntegrationTestRunner<IWorkflowEngineService>({
|
||||
|
||||
await workflowOrcModule.run(eventGroupWorkflowId, {
|
||||
input: {},
|
||||
transactionId: "transaction_id",
|
||||
context: {
|
||||
eventGroupId,
|
||||
transactionId: "transaction_id",
|
||||
},
|
||||
throwOnError: true,
|
||||
})
|
||||
@@ -126,9 +126,7 @@ moduleIntegrationTestRunner<IWorkflowEngineService>({
|
||||
it("should execute an async workflow keeping track of the event group id that has been auto generated", async () => {
|
||||
await workflowOrcModule.run(eventGroupWorkflowId, {
|
||||
input: {},
|
||||
context: {
|
||||
transactionId: "transaction_id_2",
|
||||
},
|
||||
transactionId: "transaction_id_2",
|
||||
throwOnError: true,
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user