Repository navigation
feat: controlpanel move to a accept first strategy for batch #2963
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
Merged
wilsonrivera
merged 30 commits into
main
from
wilson/eng-9724-controlpanel-move-to-a-accept-first-strategy-for-batch
Jun 16, 2026
Merged
Changes from 4 commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
e0998aa
feat: implement fire-and-forget for batch subgraph publish
wilsonrivera 91e2dea
chore: add BullMQ job to delete job details after 24 hours
wilsonrivera 0ff357c
chore: override `msgpackr` to address taskforcesh/bullmq#2747
wilsonrivera 74b0e9c
feat: implement fifo lock for async batch publish
wilsonrivera 8275b02
chore: add `.gitattributes`
wilsonrivera c70a6c0
chore: fix typo
wilsonrivera 8f6b88a
chore: move `.gitattributes` to controlplane
wilsonrivera e491d4c
chore: fix test
wilsonrivera bb7610c
chore: implement rpc endpoint to get batch publish status
wilsonrivera f119b8a
chore: cleanup owned batch publish locks
wilsonrivera d8b52ee
chore: rename `jobStatus` to `status` and make it optional
wilsonrivera 7ab73f9
chore: remove testing code
wilsonrivera 60238ac
chore: switch to heartbeat expiration instead of locking for a full day
wilsonrivera a72b642
Merge branch 'main' into wilson/eng-9724-controlpanel-move-to-a-accep…
wilsonrivera 99e6340
chore: use redis over postgres for distributed locking
wilsonrivera ec1dae1
chore: generate platform types
wilsonrivera 32e1a59
chore: remove test code
wilsonrivera 8067b2a
chore: replace `redlock-universal` with `redlock`
wilsonrivera 200a2c3
chore: add `redlock` module definition
wilsonrivera af35ce5
chore: update `tsconfig.test.json`
wilsonrivera 3e40625
chore: lock with controplace prefix
wilsonrivera 8fcedaf
Merge branch 'main' into wilson/eng-9724-controlpanel-move-to-a-accep…
wilsonrivera b5f7d3b
Merge branch 'main' into wilson/eng-9724-controlpanel-move-to-a-accep…
wilsonrivera 4aaebca
chore: cleanup `Redlock` definition
wilsonrivera a28fa5f
Merge branch 'main' into wilson/eng-9724-controlpanel-move-to-a-accep…
wilsonrivera 5314bf6
chore: regenerate migrations
wilsonrivera 514e23d
chore: update tests
wilsonrivera e84d658
chore: remove `msgpackr` override as `bullmq` has been updated
wilsonrivera ed3d363
chore: fix test
wilsonrivera 093e325
feat: cli implement status fetch for accept first strategy (#2964)
wilsonrivera File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,43 @@ | ||
| CREATE TYPE "public"."batch_publish_job_status" AS ENUM('pending', 'processing', 'failed', 'completed');--> statement-breakpoint | ||
| CREATE TABLE IF NOT EXISTS "batch_publish_job_details" ( | ||
| "id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL, | ||
| "status" "batch_publish_job_status" NOT NULL, | ||
| "organization_id" uuid NOT NULL, | ||
| "failure_reason" text, | ||
| "composition_result" json, | ||
| "created_at" timestamp with time zone DEFAULT now() NOT NULL, | ||
| "updated_at" timestamp with time zone | ||
| ); | ||
| --> statement-breakpoint | ||
| CREATE TABLE IF NOT EXISTS "batch_publish_job_details_job_locks" ( | ||
| "id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL, | ||
| "organization_id" uuid NOT NULL, | ||
| "namespace_id" uuid NOT NULL, | ||
| "job_id" uuid NOT NULL, | ||
| "expiresAt" timestamp with time zone NOT NULL, | ||
| CONSTRAINT "batch_publish_job_details_job_locks_namespace_id_key" UNIQUE("namespace_id") | ||
| ); | ||
| --> statement-breakpoint | ||
| DO $$ BEGIN | ||
| ALTER TABLE "batch_publish_job_details" ADD CONSTRAINT "batch_publish_job_details_organization_id_organizations_id_fk" FOREIGN KEY ("organization_id") REFERENCES "public"."organizations"("id") ON DELETE cascade ON UPDATE no action; | ||
| EXCEPTION | ||
| WHEN duplicate_object THEN null; | ||
| END $$; | ||
| --> statement-breakpoint | ||
| DO $$ BEGIN | ||
| ALTER TABLE "batch_publish_job_details_job_locks" ADD CONSTRAINT "batch_publish_job_details_job_locks_organization_id_organizations_id_fk" FOREIGN KEY ("organization_id") REFERENCES "public"."organizations"("id") ON DELETE cascade ON UPDATE no action; | ||
| EXCEPTION | ||
| WHEN duplicate_object THEN null; | ||
| END $$; | ||
| --> statement-breakpoint | ||
| DO $$ BEGIN | ||
| ALTER TABLE "batch_publish_job_details_job_locks" ADD CONSTRAINT "batch_publish_job_details_job_locks_namespace_id_namespaces_id_fk" FOREIGN KEY ("namespace_id") REFERENCES "public"."namespaces"("id") ON DELETE cascade ON UPDATE no action; | ||
| EXCEPTION | ||
| WHEN duplicate_object THEN null; | ||
| END $$; | ||
| --> statement-breakpoint | ||
| DO $$ BEGIN | ||
| ALTER TABLE "batch_publish_job_details_job_locks" ADD CONSTRAINT "batch_publish_job_details_job_locks_job_id_batch_publish_job_details_id_fk" FOREIGN KEY ("job_id") REFERENCES "public"."batch_publish_job_details"("id") ON DELETE cascade ON UPDATE no action; | ||
| EXCEPTION | ||
| WHEN duplicate_object THEN null; | ||
| END $$; | ||
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.