()
| 72 | : { kind: "path", workflowsPath: require.resolve("./workflows") }; |
| 73 | |
| 74 | async 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 | |
| 95 | run().catch((error: unknown) => { |
| 96 | logger.error("Error running worker", { error }); |
no test coverage detected