Files
triggerdotdev--trigger.dev/internal-packages/run-engine/package.json
T
Eric Allam e837500486 feat: v4 deadlock detection (#1970)
* Locked task runs will now require queues and tasks to be in the locked version

* Client errors caught in a run function now will skip retrying

* Extracted out the trigger queues logic

* extract validation, idempotency keys, payloads to concerns

* Extracted out a bunch of more stuff and getting trigger tests to work

* Add queue and locked version tests

* Deadlock detection WIP

* more deadlock detection

* Only detect deadlocks when the parent run is waiting on the child run

* Improve the error experience around deadlocks

* A couple tweaks to make CodeRabbit happy and fixing the tests in CI

* Fixed failing test

* Changeset

* wip

* Make sure to scope queries to the runtime env
2025-04-25 12:56:54 +01:00

50 lines
1.6 KiB
JSON

{
"name": "@internal/run-engine",
"private": true,
"version": "0.0.1",
"main": "./dist/src/index.js",
"types": "./dist/src/index.d.ts",
"type": "module",
"exports": {
".": {
"@triggerdotdev/source": "./src/index.ts",
"import": "./dist/src/index.js",
"types": "./dist/src/index.d.ts",
"default": "./dist/src/index.js"
},
"./tests": {
"@triggerdotdev/source": "./src/engine/tests/setup.ts",
"import": "./dist/src/engine/tests/setup.js",
"types": "./dist/src/engine/tests/setup.d.ts",
"default": "./dist/src/engine/tests/setup.js"
}
},
"dependencies": {
"@internal/redis": "workspace:*",
"@trigger.dev/redis-worker": "workspace:*",
"@internal/tracing": "workspace:*",
"@trigger.dev/core": "workspace:*",
"@trigger.dev/database": "workspace:*",
"@unkey/cache": "^1.5.0",
"assert-never": "^1.2.1",
"nanoid": "3.3.8",
"redlock": "5.0.0-beta.2",
"seedrandom": "^3.0.5",
"zod": "3.23.8"
},
"devDependencies": {
"@internal/testcontainers": "workspace:*",
"@types/seedrandom": "^3.0.8",
"@vitest/coverage-v8": "^3.0.8",
"rimraf": "6.0.1",
"vitest": "^3.0.8"
},
"scripts": {
"clean": "rimraf dist",
"typecheck": "tsc --noEmit -p tsconfig.build.json",
"test": "vitest --sequence.concurrent=false --no-file-parallelism",
"test:coverage": "vitest --sequence.concurrent=false --no-file-parallelism --coverage.enabled",
"build": "pnpm run clean && tsc -p tsconfig.build.json",
"dev": "tsc --watch -p tsconfig.build.json"
}
}