Repository navigation
fix(run-engine): treat delay=0 as immediate retry, not exhausted retries #5162
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,6 @@ | ||
| --- | ||
| area: webapp | ||
| type: fix | ||
| --- | ||
|
|
||
| Fix OTLP trace timestamps losing precision for runs after approximately 2255 AD. Timestamps are now computed with full 64-bit integer arithmetic. | ||
|
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. 🔍 Misleading date in timestamp release note The old timestamp conversion already rounds some present-day dates. The fix affects server-generated event times, not incoming OTLP timestamps. Was this helpful? React with 👍 or 👎 to provide feedback. |
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -67,7 +67,7 @@ export async function retryOutcomeFromCompletion( | |
|
|
||
| const delay = calculateNextRetryDelay(oomResult.retrySettings, attemptNumber ?? 1); | ||
|
|
||
| if (!delay) { | ||
| if (delay === undefined) { | ||
|
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. 🔴 Immediate OOM retries exceed attempt limits When a run reaches its per-run limit and runs out of memory, Learn moreThe trigger service passes the caller’s Example: Deploy a task with Recommended fix: Include the run’s Was this helpful? React with 👍 or 👎 to provide feedback. |
||
| //no more retries left | ||
| return { outcome: "fail_run", sanitizedError, wasOOMError: true }; | ||
| } | ||
|
|
@@ -180,7 +180,7 @@ export function retrySettingsFromLockedConfig( | |
|
|
||
| const nextDelay = calculateNextRetryDelay(parsedRetryConfig.data, attemptNumber ?? 1); | ||
|
|
||
| if (!nextDelay) { | ||
| if (nextDelay === undefined) { | ||
| return; | ||
| } | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -957,7 +957,7 @@ export class RunSubscription<TRunTypes extends AnyRunTypes> { | |
| const queuedStatuses = ["PENDING_VERSION", "QUEUED", "PENDING", "DELAYED"]; | ||
| const waitingStatuses = ["WAITING"]; | ||
| const executingStatuses = ["DEQUEUED", "EXECUTING"]; | ||
| const failedStatuses = ["FAILED", "CRASHED", "SYSTEM_FAILURE", "EXPIRED", "TIMED_OUT"]; | ||
| const failedStatuses = ["FAILED", "CRASHED", "SYSTEM_FAILURE", "EXPIRED", "TIMED_OUT", "CANCELED"]; | ||
|
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. 🟡 Canceled runs reported as failures When a subscriber receives a canceled run, Learn moresubscribeToRun delivers run objects with status helpers, and the Realtime contract lists failure statuses separately from cancellation. RunSubscription closes based on Example: Cancel a run while subscribed to it. The final update reports Recommended fix: Keep Was this helpful? React with 👍 or 👎 to provide feedback.
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. 🔍 Missing changeset for Realtime status The package changelog has no changeset for the Realtime status change. The release-note rules require one for user-visible package behavior. Was this helpful? React with 👍 or 👎 to provide feedback. |
||
| const successfulStatuses = ["COMPLETED"]; | ||
|
|
||
| function booleanHelpersFromRunStatus(status: RunStatus) { | ||
|
|
||
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.
🔍 Three unrelated fixes in one PR
The PR describes zero-delay retries but also changes trace timestamps and Realtime status helpers. The contribution guide requires one issue per PR.
Was this helpful? React with 👍 or 👎 to provide feedback.