feat(workflows-sdk): log on error (#8666)

This commit is contained in:
Carlos R. L. Rodrigues
2024-08-20 06:23:24 -03:00
committed by GitHub
parent 1be9373290
commit eb0bfe9f33
6 changed files with 122 additions and 80 deletions

View File

@@ -11,20 +11,20 @@ import {
} from "@medusajs/types"
import {
ContainerRegistrationKeys,
createMedusaContainer,
Module,
Modules,
TransactionHandlerType,
TransactionStepState,
createMedusaContainer,
} from "@medusajs/utils"
import { WorkflowsModuleService } from "@medusajs/workflow-engine-inmemory/dist/services"
import { asFunction, asValue } from "awilix"
import Redis from "ioredis"
import { knex } from "knex"
import { setTimeout } from "timers/promises"
import "../__fixtures__"
import { createScheduled } from "../__fixtures__/workflow_scheduled"
import { DB_URL, TestDatabase } from "../utils"
import { WorkflowsModuleService } from "@medusajs/workflow-engine-inmemory/dist/services"
import Redis from "ioredis"
jest.setTimeout(100000)
@@ -216,6 +216,7 @@ describe("Workflow Orchestrator module", function () {
myInput: "123",
},
throwOnError: false,
logOnError: true,
}
)