-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
fix(v3): remove executing tasks waiting to deploy #4432
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. | ||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -41,7 +41,6 @@ import { | |||||
| } from "~/v3/services/cancelDevSessionRuns.server"; | ||||||
| import { CancelTaskAttemptDependenciesService } from "~/v3/services/cancelTaskAttemptDependencies.server"; | ||||||
| import { EnqueueDelayedRunService } from "~/v3/services/enqueueDelayedRun.server"; | ||||||
| import { ExecuteTasksWaitingForDeployService } from "~/v3/services/executeTasksWaitingForDeploy"; | ||||||
| import { ExpireEnqueuedRunService } from "~/v3/services/expireEnqueuedRun.server"; | ||||||
| import { ResumeBatchRunService } from "~/v3/services/resumeBatchRun.server"; | ||||||
| import { ResumeTaskDependencyService } from "~/v3/services/resumeTaskDependency.server"; | ||||||
|
|
@@ -220,9 +219,6 @@ function getWorkerQueue() { | |||||
| priority: 0, | ||||||
| maxAttempts: 5, | ||||||
| handler: async (payload, job) => { | ||||||
| const service = new ExecuteTasksWaitingForDeployService(); | ||||||
|
|
||||||
| return await service.call(payload.backgroundWorkerId); | ||||||
| }, | ||||||
| }, | ||||||
| // @deprecated, moved to ScheduleEngine | ||||||
|
|
@@ -288,7 +284,7 @@ function getWorkerQueue() { | |||||
| "v3.requeueTaskRun": { | ||||||
| priority: 0, | ||||||
| maxAttempts: 3, | ||||||
| handler: async (payload, job) => {}, // This is now handled by redisWorker | ||||||
| handler: async (payload, job) => { }, // This is now handled by redisWorker | ||||||
|
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 would fail the automated code-quality check An empty function body was reformatted with a space inside the braces ( Rule referenceAGENTS.md / CONTRIBUTING.md require running
Suggested change
Was this helpful? React with 👍 or 👎 to provide feedback. |
||||||
| }, | ||||||
| // @deprecated, moved to commonWorker.server.ts | ||||||
| "v3.retryAttempt": { | ||||||
|
|
||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -20,7 +20,6 @@ import { BatchTriggerV3Service } from "./services/batchTriggerV3.server"; | |
| import { CancelDevSessionRunsService } from "./services/cancelDevSessionRuns.server"; | ||
| import { CancelTaskAttemptDependenciesService } from "./services/cancelTaskAttemptDependencies.server"; | ||
| import { EnqueueDelayedRunService } from "./services/enqueueDelayedRun.server"; | ||
| import { ExecuteTasksWaitingForDeployService } from "./services/executeTasksWaitingForDeploy"; | ||
| import { ExpireEnqueuedRunService } from "./services/expireEnqueuedRun.server"; | ||
| import { ResumeBatchRunService } from "./services/resumeBatchRun.server"; | ||
| import { ResumeTaskDependencyService } from "./services/resumeTaskDependency.server"; | ||
|
|
@@ -252,8 +251,6 @@ function initializeWorker() { | |
| await service.call(payload.deploymentId, payload.fromStatus, payload.errorMessage); | ||
| }, | ||
| "v3.executeTasksWaitingForDeploy": async ({ payload }) => { | ||
| const service = new ExecuteTasksWaitingForDeployService(); | ||
| await service.call(payload.backgroundWorkerId); | ||
| }, | ||
|
Comment on lines
253
to
254
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. 🔴 Runs held back until a deploy exists are never started again The step that releases runs waiting on a deployment has been emptied out ( How waiting runs lose their only drain path
This PR deletes the service file and empties all three, so nothing transitions Prompt for agentsWas this helpful? React with 👍 or 👎 to provide feedback. |
||
| "v3.retryAttempt": async ({ payload }) => { | ||
| const service = new RetryAttemptService(); | ||
|
|
||
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-notes entry claims a published package changed when only server code did
A changeset targeting the published core package was added (
"@trigger.dev/core": patchin.changeset/fix-v3-executing-tasks.md:2) even though the PR only touches server code, so an unrelated package gets a version bump and a misleading release note.Impact: Users see a package release describing a change that isn't in that package, and the note is written in internal implementation terms rather than user-facing behaviour.
Repository rule for server-only changes
AGENTS.md and CONTRIBUTING.md state: when modifying only server components (
apps/webapp/,apps/supervisor/, etc.) with no package changes, add a.server-changes/file (witharea/typefrontmatter) instead of a changeset. They also require the description be written for users, not maintainers, and never name internal tooling/infra — the current text ("fix(v3): remove executing tasks waiting to deploy", "tasks in EXECUTING state but waiting for deployment") is implementation-oriented and inaccurate.Prompt for agents
Was this helpful? React with 👍 or 👎 to provide feedback.