e69ffd314a
* WIP worker TaskRunAttempt creation
* Handling failing task runs that cannot create an attempt for whatever reason
* Move the visibility queue stuff into a graphile job
* Fixed task runs with unsanitized queue names
* “Borrow” the code from alerts PR to get self hosted deployments working
* Add an admin API endpoint to get info about the shared marqs queue
* Allow admins to view any project metrics
* start adding lazy attempts to prod
* lazy attempt creation for prod workers
* resurrect prod stack traces
* add exception event to failed run spans
* simplify dependency resumes
* fix typecheck
* fix merge
* fresh process for all attempts
* always try sigterm first
* stop heartbeat timeout on non-inplace replace message
* add missing ack on checkpoint creation service failure
* bypass dequeue for retries with running worker
* respect retry delays
* crash runs with invalid run status for execution
* remove debug logs
* fix nack message
* fix version locking
* fresh attempt processes in dev and prod
* improve handling of ipc timeouts
* consider checkpoint failures on cancellation
* add basic chaos monkey to checkpointer
* changeset
* control forced checkpoint simulation via env var
* fix merge
* kill old attempt processes before checkpointing
* detailed perf logging for checkpointing
* add coordinator otlp endpoint example
* improve prod run cancellation
* rename supports lazy attempts migration
* fix graceful exit
* fix retry mechanics
* clear paused state before retry
* remove checkpoint image after push
* crash worker on unrecoverable errors
* refactor unrecoverable error emit
* switch to do hosted busybox image
* increase wait for duration ipc timeout
* add changeset for misc fixes
* fix merge
* fix retry delay span runId
* fix dev retries
* improve prod worker logging
* log checkpoint sizes
* add lazy attempts catalog entries
* Fixed merge issue: use zodFetch, not wrapZodFetch
* Revert "Fixed merge issue: use zodFetch, not wrapZodFetch"
This reverts commit d137e4e1fe.
* importEnvVars uses wrapZodFetch now
* add backwards compat for retries without checkpoints
* handle more cases of unrecoverable runs
* don't kill the child process if it shouldn't be killed
---------
Co-authored-by: nicktrn <55853254+nicktrn@users.noreply.github.com>
Co-authored-by: Matt Aitken <matt@mattaitken.com>
170 lines
4.7 KiB
JSON
170 lines
4.7 KiB
JSON
{
|
|
"name": "@trigger.dev/core",
|
|
"version": "3.0.0-beta.34",
|
|
"description": "Core code used across the Trigger.dev SDK and platform",
|
|
"license": "MIT",
|
|
"main": "./dist/index.js",
|
|
"types": "./dist/index.d.ts",
|
|
"module": "./dist/index.mjs",
|
|
"publishConfig": {
|
|
"access": "public"
|
|
},
|
|
"files": [
|
|
"dist"
|
|
],
|
|
"exports": {
|
|
".": {
|
|
"import": {
|
|
"types": "./dist/index.d.mts",
|
|
"default": "./dist/index.mjs"
|
|
},
|
|
"require": "./dist/index.js",
|
|
"types": "./dist/index.d.ts"
|
|
},
|
|
"./v3": {
|
|
"import": {
|
|
"types": "./dist/v3/index.d.mts",
|
|
"default": "./dist/v3/index.mjs"
|
|
},
|
|
"require": "./dist/v3/index.js",
|
|
"types": "./dist/v3/index.d.ts"
|
|
},
|
|
"./v3/otel": {
|
|
"import": {
|
|
"types": "./dist/v3/otel/index.d.mts",
|
|
"default": "./dist/v3/otel/index.mjs"
|
|
},
|
|
"require": "./dist/v3/otel/index.js",
|
|
"types": "./dist/v3/otel/index.d.ts"
|
|
},
|
|
"./v3/zodfetch": {
|
|
"import": {
|
|
"types": "./dist/v3/zodfetch.d.mts",
|
|
"default": "./dist/v3/zodfetch.mjs"
|
|
},
|
|
"require": "./dist/v3/zodfetch.js",
|
|
"types": "./dist/v3/zodfetch.d.ts"
|
|
},
|
|
"./v3/zodMessageHandler": {
|
|
"import": {
|
|
"types": "./dist/v3/zodMessageHandler.d.mts",
|
|
"default": "./dist/v3/zodMessageHandler.mjs"
|
|
},
|
|
"require": "./dist/v3/zodMessageHandler.js",
|
|
"types": "./dist/v3/zodMessageHandler.d.ts"
|
|
},
|
|
"./v3/zodNamespace": {
|
|
"import": {
|
|
"types": "./dist/v3/zodNamespace.d.mts",
|
|
"default": "./dist/v3/zodNamespace.mjs"
|
|
},
|
|
"require": "./dist/v3/zodNamespace.js",
|
|
"types": "./dist/v3/zodNamespace.d.ts"
|
|
},
|
|
"./v3/zodSocket": {
|
|
"import": {
|
|
"types": "./dist/v3/zodSocket.d.mts",
|
|
"default": "./dist/v3/zodSocket.mjs"
|
|
},
|
|
"require": "./dist/v3/zodSocket.js",
|
|
"types": "./dist/v3/zodSocket.d.ts"
|
|
},
|
|
"./v3/zodIpc": {
|
|
"import": {
|
|
"types": "./dist/v3/zodIpc.d.mts",
|
|
"default": "./dist/v3/zodIpc.mjs"
|
|
},
|
|
"require": "./dist/v3/zodIpc.js",
|
|
"types": "./dist/v3/zodIpc.d.ts"
|
|
},
|
|
"./v3/utils/structuredLogger": {
|
|
"import": {
|
|
"types": "./dist/v3/utils/structuredLogger.d.mts",
|
|
"default": "./dist/v3/utils/structuredLogger.mjs"
|
|
},
|
|
"require": "./dist/v3/utils/structuredLogger.js",
|
|
"types": "./dist/v3/utils/structuredLogger.d.ts"
|
|
},
|
|
"./v3/dev": {
|
|
"import": {
|
|
"types": "./dist/v3/dev/index.d.mts",
|
|
"default": "./dist/v3/dev/index.mjs"
|
|
},
|
|
"require": "./dist/v3/dev/index.js",
|
|
"types": "./dist/v3/dev/index.d.ts"
|
|
},
|
|
"./v3/prod": {
|
|
"import": {
|
|
"types": "./dist/v3/prod/index.d.mts",
|
|
"default": "./dist/v3/prod/index.mjs"
|
|
},
|
|
"require": "./dist/v3/prod/index.js",
|
|
"types": "./dist/v3/prod/index.d.ts"
|
|
},
|
|
"./v3/workers": {
|
|
"import": {
|
|
"types": "./dist/v3/workers/index.d.mts",
|
|
"default": "./dist/v3/workers/index.mjs"
|
|
},
|
|
"require": "./dist/v3/workers/index.js",
|
|
"types": "./dist/v3/workers/index.d.ts"
|
|
},
|
|
"./package.json": "./package.json"
|
|
},
|
|
"typesVersions": {
|
|
"*": {
|
|
"v3": [
|
|
"./dist/v3/index.d.ts"
|
|
],
|
|
"v3/otel": [
|
|
"./dist/v3/otel/index.d.ts"
|
|
]
|
|
}
|
|
},
|
|
"sideEffects": false,
|
|
"scripts": {
|
|
"clean": "rimraf dist",
|
|
"build": "npm run clean && npm run build:tsup",
|
|
"build:tsup": "tsup --dts-resolve",
|
|
"typecheck": "tsc --noEmit",
|
|
"test": "jest"
|
|
},
|
|
"dependencies": {
|
|
"@google-cloud/precise-date": "^4.0.0",
|
|
"@opentelemetry/api": "^1.8.0",
|
|
"@opentelemetry/api-logs": "^0.48.0",
|
|
"@opentelemetry/exporter-logs-otlp-http": "^0.49.1",
|
|
"@opentelemetry/exporter-trace-otlp-http": "^0.49.1",
|
|
"@opentelemetry/instrumentation": "^0.49.1",
|
|
"@opentelemetry/resources": "^1.22.0",
|
|
"@opentelemetry/sdk-logs": "^0.49.1",
|
|
"@opentelemetry/sdk-node": "^0.49.1",
|
|
"@opentelemetry/sdk-trace-base": "^1.22.0",
|
|
"@opentelemetry/sdk-trace-node": "^1.22.0",
|
|
"@opentelemetry/semantic-conventions": "^1.22.0",
|
|
"form-data-encoder": "^4.0.2",
|
|
"humanize-duration": "^3.27.3",
|
|
"socket.io-client": "4.7.4",
|
|
"superjson": "^2.2.1",
|
|
"ulidx": "^2.2.1",
|
|
"zod": "3.22.3",
|
|
"zod-error": "1.5.0",
|
|
"zod-validation-error": "^1.5.0"
|
|
},
|
|
"devDependencies": {
|
|
"@trigger.dev/tsconfig": "workspace:*",
|
|
"@trigger.dev/tsup": "workspace:*",
|
|
"@types/humanize-duration": "^3.27.1",
|
|
"@types/jest": "^29.5.3",
|
|
"@types/node": "20.12.7",
|
|
"jest": "^29.6.2",
|
|
"rimraf": "^3.0.2",
|
|
"socket.io": "4.7.4",
|
|
"ts-jest": "^29.1.1",
|
|
"tsup": "^8.0.1",
|
|
"typescript": "^5.3.0"
|
|
},
|
|
"engines": {
|
|
"node": ">=18.0.0"
|
|
}
|
|
} |