MCPcopy Create free account
hub / github.com/hashintel/hash / run

Function run

apps/hash-integration-worker/src/main.ts:74–93  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

72 : { kind: "path", workflowsPath: require.resolve("./workflows") };
73
74async function run() {
75 const graphApiClient = createGraphClient(logger, {
76 host: getRequiredEnv("HASH_GRAPH_HTTP_HOST"),
77 port: parseInt(getRequiredEnv("HASH_GRAPH_HTTP_PORT"), 10),
78 });
79
80 await runWorker({
81 serviceName: "integration worker",
82 taskQueue: "integration",
83 healthCheckPort: 4300,
84 activities: {
85 ...linearActivities.createLinearIntegrationActivities({ graphApiClient }),
86 ...createFlowActivities({ graphApiClient }),
87 ...createCommonFlowActivities({ graphApiClient }),
88 },
89 workflowSource,
90 otelSetup,
91 logger,
92 });
93}
94
95run().catch((error: unknown) => {
96 logger.error("Error running worker", { error });

Callers 1

main.tsFile · 0.70

Calls 5

createGraphClientFunction · 0.90
getRequiredEnvFunction · 0.90
runWorkerFunction · 0.90
createFlowActivitiesFunction · 0.50

Tested by

no test coverage detected