f38d35e9f6
* Add retry logic for insert operations Add a generic retry mechanism for task run and payload inserts to handle transient connection errors. The new #insertWithRetry method retries up to three times with exponential backoff and jitter on retryable connection errors such as connection resets or timeouts. Errors are logged and recorded in tracing spans to improve observability and robustness of the replication service. * Replication settings are configurable * Log out the runIds for failed batches * Detecting bad JSON in run replication and ignoring it * Reproduced split unicode error * Move output file * Massively improved the performance * Minor performance improvements * Unskip tests * Remove unused test in CH package * Fix for the ClickHouse UI explorer * RunReplication keepAlive defaults to false * Add concurrency_key and bulk_action_group_ids to ClickHouse task runs * ClickHouse package doesn't need to be built anymore for the webapp * Set the concurrency_key from the run replication service
40 lines
1.2 KiB
JSON
40 lines
1.2 KiB
JSON
{
|
|
"name": "@internal/clickhouse",
|
|
"private": true,
|
|
"version": "0.0.2",
|
|
"main": "./dist/src/index.js",
|
|
"types": "./dist/src/index.d.ts",
|
|
"type": "module",
|
|
"dependencies": {
|
|
"@clickhouse/client": "^1.11.1",
|
|
"@internal/tracing": "workspace:*",
|
|
"@trigger.dev/core": "workspace:*",
|
|
"zod": "3.23.8",
|
|
"zod-error": "1.5.0"
|
|
},
|
|
"devDependencies": {
|
|
"@internal/testcontainers": "workspace:*",
|
|
"rimraf": "6.0.1"
|
|
},
|
|
"scripts": {
|
|
"clean": "rimraf dist",
|
|
"typecheck": "tsc --noEmit -p tsconfig.build.json",
|
|
"build": "pnpm run clean && tsc -p tsconfig.build.json",
|
|
"dev": "tsc --watch -p tsconfig.build.json",
|
|
"db:migrate": "docker compose -p triggerdotdev-docker -f ../../docker/docker-compose.yml up clickhouse_migrator --build",
|
|
"db:migrate:down": "GOOSE_COMMAND=down pnpm run db:migrate",
|
|
"test": "vitest --sequence.concurrent=false --no-file-parallelism",
|
|
"test:coverage": "vitest --sequence.concurrent=false --no-file-parallelism --coverage.enabled"
|
|
},
|
|
"exports": {
|
|
"./package.json": "./package.json",
|
|
".": {
|
|
"import": {
|
|
"@triggerdotdev/source": "./src/index.ts",
|
|
"types": "./dist/src/index.d.ts",
|
|
"default": "./dist/src/index.js"
|
|
}
|
|
}
|
|
}
|
|
}
|