Skip to content

Add changeset for v3 executing tasks fix - #4462

Closed
deepshekhardas wants to merge 2 commits into
triggerdotdev:mainfrom
deepshekhardas:pr-3310-fix
Closed

Add changeset for v3 executing tasks fix#4462
deepshekhardas wants to merge 2 commits into
triggerdotdev:mainfrom
deepshekhardas:pr-3310-fix

Conversation

@deepshekhardas

Copy link
Copy Markdown

Chore changeset for the deprecated executeTasksWaitingForDeploy cleanup. See original #3310.

@changeset-bot

changeset-bot Bot commented Aug 2, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 634ec91

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 27 packages
Name Type
@trigger.dev/core Patch
@trigger.dev/build Patch
trigger.dev Patch
@trigger.dev/python Patch
@trigger.dev/redis-worker Patch
@trigger.dev/schema-to-json Patch
@trigger.dev/sdk Patch
@internal/cache Patch
@internal/clickhouse Patch
@internal/llm-model-catalog Patch
@trigger.dev/rbac Patch
@internal/redis Patch
@internal/replication Patch
@internal/run-engine Patch
@internal/run-store Patch
@internal/schedule-engine Patch
@trigger.dev/sso Patch
@internal/testcontainers Patch
@internal/tracing Patch
@internal/tsql Patch
@internal/zod-worker Patch
@internal/dashboard-agent Patch
@internal/sdk-compat-tests Patch
@trigger.dev/react-hooks Patch
@trigger.dev/rsc Patch
@trigger.dev/database Patch
@trigger.dev/otlp-importer Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions

github-actions Bot commented Aug 2, 2026

Copy link
Copy Markdown
Contributor

Hi @deepshekhardas, thanks for your interest in contributing!

This project requires that pull request authors are vouched, and you are not in the list of vouched users.

This PR will be closed automatically. See https://github.com/triggerdotdev/trigger.dev/blob/main/CONTRIBUTING.md for more details.

@github-actions github-actions Bot closed this Aug 2, 2026

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 3 potential issues.

Open in Devin Review

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Formatting change will fail the automated code-quality check

An empty function body is rewritten with a space inside the braces (async (payload, job) => { } at apps/webapp/app/services/worker.server.ts:291), which the repository's auto-formatter will rewrite, so the required formatting check fails.
Impact: The pull request's CI code-quality job fails until the formatting is reverted.

Rule reference

AGENTS.md ("Formatting and linting") states format/lint are enforced by CI (code-quality check) and CONTRIBUTING.md requires running pnpm run format before pushing; oxfmt normalizes empty blocks to {} (as they were before this diff).

(Refers to line 291)

Open in Devin Review

Was this helpful? React with 👍 or 👎 to provide feedback.

Comment on lines +1 to +7
---
"@trigger.dev/core": patch
---

fix(v3): remove executing tasks waiting to deploy

Removes the executing tasks that are waiting to deploy from the task list. This fixes an issue where tasks in EXECUTING state but waiting for deployment were incorrectly displayed.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Release note added to the wrong product, publishing an npm package with an unrelated note

A note for a change that only touches the server app is filed against the published @trigger.dev/core package ("@trigger.dev/core": patch at .changeset/fix-v3-executing-tasks.md:2) instead of the server-changes folder, so a package release is cut with a changelog entry describing work that never happened in that package.
Impact: Users see a version bump and release note for a package that did not change, and the actual server change is missing from server release notes.

Repository rule: changesets are only for packages/*, server-only changes use .server-changes/

AGENTS.md ("Changesets and Server Changes") and CONTRIBUTING.md ("Adding server changes") state: "When modifying only server components (apps/webapp/, apps/supervisor/, etc.) with no package changes, add a .server-changes/ file instead." All code in this PR is under apps/webapp/ (apps/webapp/app/services/worker.server.ts, apps/webapp/app/v3/commonWorker.server.ts, apps/webapp/app/v3/services/changeCurrentDeployment.server.ts, apps/webapp/app/v3/services/createDeploymentBackgroundWorkerV3.server.ts, and the deleted apps/webapp/app/v3/services/executeTasksWaitingForDeploy.ts); no file under packages/ is touched.

Additionally the body violates "Write the description for users, not maintainers" — fix(v3): remove executing tasks waiting to deploy is a commit-style, implementation-named line, and the second paragraph describes internal run states (EXECUTING, deployment waiting) rather than user-visible behavior.

Prompt for agents
This PR only changes files under apps/webapp/, so per AGENTS.md and CONTRIBUTING.md it must not add a changeset for a published package. Delete .changeset/fix-v3-executing-tasks.md and instead add a .server-changes/ markdown file with frontmatter `area: webapp` and `type: fix` (see .server-changes/README.md), with a one-line, user-facing description that avoids internal tool/state names and describes the behavior change for users.
Open in Devin Review

Was this helpful? React with 👍 or 👎 to provide feedback.

Comment on lines 176 to 177

// Only V1 engine workers need the WAITING_FOR_DEPLOY drain — V2 runs sit
// in PENDING_VERSION and are handled out of band, so enqueuing here for V2
// just produces empty scans of the TaskRun status index.
const worker = await this._prisma.backgroundWorker.findFirst({
where: { id: deployment.workerId },
select: { engine: true },
});

if (worker?.engine === "V1") {
await ExecuteTasksWaitingForDeployService.enqueue(deployment.workerId);
}
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔍 Legacy V1 runs can still enter WAITING_FOR_DEPLOY with no drain left

The V1 shared queue consumer still transitions runs into WAITING_FOR_DEPLOY (apps/webapp/app/v3/marqs/sharedQueueConsumer.server.ts:1433-1444). With the drain service deleted and both enqueue sites removed (here and in apps/webapp/app/v3/services/createDeploymentBackgroundWorkerV3.server.ts:212), nothing in the webapp flips those runs back to PENDING or re-enqueues them into MarQS, so any V1 run parked in that state would stay there indefinitely. Worth confirming that no V1 engine environments remain that can still hit the shared queue consumer path, otherwise the consumer-side marking should be removed/failed-fast too.

Open in Devin Review

Was this helpful? React with 👍 or 👎 to provide feedback.

@coderabbitai

coderabbitai Bot commented Aug 2, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: cc9a80ae-b0d8-44fe-ba4e-1fe6301006dd

📥 Commits

Reviewing files that changed from the base of the PR and between 14824b0 and 634ec91.

📒 Files selected for processing (6)
  • .changeset/fix-v3-executing-tasks.md
  • apps/webapp/app/services/worker.server.ts
  • apps/webapp/app/v3/commonWorker.server.ts
  • apps/webapp/app/v3/services/changeCurrentDeployment.server.ts
  • apps/webapp/app/v3/services/createDeploymentBackgroundWorkerV3.server.ts
  • apps/webapp/app/v3/services/executeTasksWaitingForDeploy.ts

Walkthrough

Removed ExecuteTasksWaitingForDeployService and its V3 worker handlers. Deployment creation no longer enqueues tasks waiting for deployment. The existing v3.requeueTaskRun handler remains a no-op. A patch changeset documents the task-list behavior change.

✨ Finishing Touches 💡 1
⚔️ Resolve merge conflicts 💡
  • Resolve merge conflict in branch pr-3310-fix
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant