Skip to content

Commit eed126c

Browse files
committed
Merge remote-tracking branch 'origin/main' into kapa-ai-widget
2 parents fbf9bdf + 0b2eb34 commit eed126c

File tree

116 files changed

+4097
-553
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

116 files changed

+4097
-553
lines changed

.changeset/four-needles-add.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
"@trigger.dev/redis-worker": major
3+
"@trigger.dev/react-hooks": major
4+
"@trigger.dev/sdk": major
5+
"trigger.dev": major
6+
"@trigger.dev/python": major
7+
"@trigger.dev/build": major
8+
"@trigger.dev/core": major
9+
"@trigger.dev/rsc": major
10+
---
11+
12+
Trigger.dev v4 release. Please see our upgrade to v4 docs to view the full changelog: https://trigger.dev/docs/upgrade-to-v4

.changeset/late-chairs-ring.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"trigger.dev": patch
3+
---
4+
5+
Fix init.ts in custom trigger dirs

.changeset/moody-squids-count.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"trigger.dev": patch
3+
---
4+
5+
Init command will now correctly install v4-beta packages

.changeset/polite-lies-fix.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"trigger.dev": patch
3+
---
4+
5+
Update nypm package to support test-based bun.lock files

.changeset/pre.json

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"mode": "pre",
3+
"tag": "v4-beta",
4+
"initialVersions": {
5+
"coordinator": "0.0.1",
6+
"docker-provider": "0.0.1",
7+
"kubernetes-provider": "0.0.1",
8+
"supervisor": "0.0.1",
9+
"webapp": "1.0.0",
10+
"@trigger.dev/build": "3.3.17",
11+
"trigger.dev": "3.3.17",
12+
"@trigger.dev/core": "3.3.17",
13+
"@trigger.dev/python": "3.3.17",
14+
"@trigger.dev/react-hooks": "3.3.17",
15+
"@trigger.dev/redis-worker": "3.3.17",
16+
"@trigger.dev/rsc": "3.3.17",
17+
"@trigger.dev/sdk": "3.3.17"
18+
},
19+
"changesets": [
20+
"breezy-turtles-talk",
21+
"four-needles-add",
22+
"honest-files-decide",
23+
"late-chairs-ring",
24+
"moody-squids-count",
25+
"nice-colts-boil",
26+
"polite-lies-fix",
27+
"red-wasps-cover",
28+
"shiny-kiwis-beam",
29+
"smart-coins-hammer",
30+
"weak-jobs-hide"
31+
]
32+
}

.changeset/shiny-kiwis-beam.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"trigger.dev": patch
3+
---
4+
5+
Handle flush errors gracefully in dev

.github/workflows/publish-worker-re2.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,16 @@ permissions:
1818
contents: read
1919

2020
jobs:
21-
check-branch:
22-
runs-on: ubuntu-latest
23-
steps:
24-
- name: Fail if re2-prod-* is pushed from a non-main branch
25-
if: startsWith(github.ref_name, 're2-prod-') && github.base_ref != 'main'
26-
run: |
27-
echo "🚫 re2-prod-* tags can only be pushed from the main branch."
28-
exit 1
21+
# check-branch:
22+
# runs-on: ubuntu-latest
23+
# steps:
24+
# - name: Fail if re2-prod-* is pushed from a non-main branch
25+
# if: startsWith(github.ref_name, 're2-prod-') && github.base_ref != 'main'
26+
# run: |
27+
# echo "🚫 re2-prod-* tags can only be pushed from the main branch."
28+
# exit 1
2929
build:
30-
needs: check-branch
30+
# needs: check-branch
3131
strategy:
3232
matrix:
3333
package: [supervisor]

.vscode/launch.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@
138138
"type": "node-terminal",
139139
"request": "launch",
140140
"name": "Debug RunEngine tests",
141-
"command": "pnpm run test ./src/engine/tests/releaseConcurrencyQueue.test.ts -t 'Should manage token bucket and queue correctly'",
141+
"command": "pnpm run test ./src/engine/tests/releaseConcurrencyTokenBucketQueue.test.ts -t 'Should retrieve metrics for all queues via getQueueMetrics'",
142142
"cwd": "${workspaceFolder}/internal-packages/run-engine",
143143
"sourceMaps": true
144144
},

apps/supervisor/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,7 @@ class ManagedSupervisor {
224224

225225
try {
226226
await this.workloadManager.create({
227+
dequeuedAt: message.dequeuedAt,
227228
envId: message.environment.id,
228229
envType: message.environment.type,
229230
image: message.image,

apps/supervisor/src/util.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ export function getDockerHostDomain() {
55
return isMacOs || isWindows ? "host.docker.internal" : "localhost";
66
}
77

8-
export function getRunnerId(runId: string) {
9-
return `runner-${runId.replace("run_", "")}`;
8+
export function getRunnerId(runId: string, attemptNumber?: number) {
9+
const parts = ["runner", runId.replace("run_", "")];
10+
11+
if (attemptNumber && attemptNumber > 1) {
12+
parts.push(`attempt-${attemptNumber}`);
13+
}
14+
15+
return parts.join("-");
1016
}

0 commit comments

Comments
 (0)