Skip to content

Commit

Permalink
Runtime import agent lib
Browse files Browse the repository at this point in the history
  • Loading branch information
John Smith committed May 8, 2024
1 parent 98d8348 commit dc0aa0e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion control-plane/src/modules/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ import {
import { deploymentResultFromNotification } from "./deployment/cfn-manager";
import { env } from "../utilities/env";
import { logger } from "../utilities/logger";
import { executeTaskForCluster } from "./agents/agent";
import { ulid } from "ulid";

const readFile = util.promisify(fs.readFile);
Expand Down Expand Up @@ -959,6 +958,8 @@ export const router = s.router(contract, {
const { task } = request.body;

const taskId = ulid();
const { executeTaskForCluster } = require("./agents/agent");

const result = await executeTaskForCluster({ clusterId }, taskId, task);

return {
Expand Down

0 comments on commit dc0aa0e

Please sign in to comment.