-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Add changeset for v3 executing tasks fix #4462
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,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. | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 ( Rule referenceAGENTS.md ("Formatting and linting") states format/lint are enforced by CI ( (Refers to line 291) Was this helpful? React with 👍 or 👎 to provide feedback. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -10,7 +10,6 @@ import { | |
| import { taskMetadataCacheInstance } from "~/services/taskMetadataCacheInstance.server"; | ||
| import { BaseService, ServiceValidationError } from "./baseService.server"; | ||
| import { syncDeclarativeSchedules } from "./createBackgroundWorker.server"; | ||
| import { ExecuteTasksWaitingForDeployService } from "./executeTasksWaitingForDeploy"; | ||
| import { compareDeploymentVersions } from "../utils/deploymentVersions"; | ||
|
|
||
| export type ChangeCurrentDeploymentDirection = "promote" | "rollback"; | ||
|
|
@@ -175,17 +174,6 @@ export class ChangeCurrentDeploymentService extends BaseService { | |
| }); | ||
| } | ||
|
|
||
| // 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); | ||
| } | ||
| } | ||
|
Comment on lines
176
to
177
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 Was this helpful? React with 👍 or 👎 to provide feedback. |
||
|
|
||
| async #syncSchedulesForDeployment(deployment: WorkerDeployment) { | ||
|
|
||
This file was deleted.
There was a problem hiding this comment.
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/corepackage ("@trigger.dev/core": patchat.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 underapps/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 deletedapps/webapp/app/v3/services/executeTasksWaitingForDeploy.ts); no file underpackages/is touched.Additionally the body violates "Write the description for users, not maintainers" —
fix(v3): remove executing tasks waiting to deployis 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
Was this helpful? React with 👍 or 👎 to provide feedback.