feat: add start_mode to worker functions to skip HTTP pings for process workers#626
Open
jumski wants to merge 1 commit into
Open
feat: add start_mode to worker functions to skip HTTP pings for process workers#626jumski wants to merge 1 commit into
start_mode to worker functions to skip HTTP pings for process workers#626jumski wants to merge 1 commit into
Conversation
|
This was referenced Jun 7, 2026
Contributor
Author
This was referenced Jun 7, 2026
|
View your CI Pipeline Execution ↗ for commit 30f8253
💡 Verify your cache is correct by running tasks in a sandbox. Read docs ↗ ☁️ Nx Cloud last updated this comment at |
ca1dd9b to
8f4bb3e
Compare
8f4bb3e to
30f8253
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Adds a
start_modefield toworker_functionsto distinguish between workers that are HTTP-pinged byensure_workers()and workers that manage their own startup lifecycle (processmode).The
ensure_workers()cron function now filters exclusively onstart_mode = 'http', meaning process-mode workers are never targeted by HTTP pings regardless of environment (local or production). Thetrack_worker_function()SQL function and its TypeScript counterpart accept an optionalstart_modeparameter (defaulting to'http'), and update the stored mode on conflict.WorkerBootstrapgains an optionalstartModefield, whichWorkerLifecycleandFlowWorkerLifecycleread duringacknowledgeStartto forward the correct mode when registering the worker.SupabasePlatformAdapterexplicitly passes'http'when bootstrapping via HTTP request handling.A database constraint enforces that only
'http'and'process'are valid values. Tests cover default mode storage, explicit mode storage, conflict updates, constraint violations, and thatensure_workers()skips process-mode workers in both local and production environments.