This commit is contained in:
mike12345567 2023-09-05 12:33:01 +01:00
parent 83875cd2d6
commit c6223ca935
1 changed files with 23 additions and 14 deletions

View File

@ -1,13 +1,17 @@
import {default as threadUtils} from "./utils" import { default as threadUtils } from "./utils"
import {Job} from "bull" import { Job } from "bull"
import {disableCronById, isErrorInOutput, isRecurring} from "../automations/utils" import {
disableCronById,
isErrorInOutput,
isRecurring,
} from "../automations/utils"
import * as actions from "../automations/actions" import * as actions from "../automations/actions"
import * as automationUtils from "../automations/automationUtils" import * as automationUtils from "../automations/automationUtils"
import {default as AutomationEmitter} from "../events/AutomationEmitter" import { default as AutomationEmitter } from "../events/AutomationEmitter"
import {generateAutomationMetadataID, isProdAppID} from "../db/utils" import { generateAutomationMetadataID, isProdAppID } from "../db/utils"
import {definitions as triggerDefs} from "../automations/triggerInfo" import { definitions as triggerDefs } from "../automations/triggerInfo"
import {AutomationErrors, MAX_AUTOMATION_RECURRING_ERRORS} from "../constants" import { AutomationErrors, MAX_AUTOMATION_RECURRING_ERRORS } from "../constants"
import {storeLog} from "../automations/logging" import { storeLog } from "../automations/logging"
import { import {
Automation, Automation,
AutomationData, AutomationData,
@ -17,12 +21,17 @@ import {
AutomationStep, AutomationStep,
AutomationStepStatus, AutomationStepStatus,
} from "@budibase/types" } from "@budibase/types"
import {AutomationContext, LoopInput, LoopStep, TriggerOutput} from "../definitions/automations" import {
import {WorkerCallback} from "./definitions" AutomationContext,
import {context, logging} from "@budibase/backend-core" LoopInput,
import {processObject} from "@budibase/string-templates" LoopStep,
import {cloneDeep} from "lodash/fp" TriggerOutput,
import {performance} from "perf_hooks" } from "../definitions/automations"
import { WorkerCallback } from "./definitions"
import { context, logging } from "@budibase/backend-core"
import { processObject } from "@budibase/string-templates"
import { cloneDeep } from "lodash/fp"
import { performance } from "perf_hooks"
import * as sdkUtils from "../sdk/utils" import * as sdkUtils from "../sdk/utils"
import env from "../environment" import env from "../environment"