Repository navigation
DM-56864: Stage chunks with BigQuery load jobs instead of Dataflow - #38
Open
JeremyMcCormick wants to merge 7 commits into
Open
JeremyMcCormick wants to merge 7 commits into
JeremyMcCormick wants to merge 7 commits into
Conversation
JeremyMcCormick
force-pushed
the
tickets/DM-56864
branch
from
November 3, 2026 00:17
a10263a to
49e67ab
Compare
JeremyMcCormick
force-pushed
the
tickets/DM-56864
branch
2 times, most recently
from
November 4, 2026 19:59
23ed333 to
22c85c8
Compare
JeremyMcCormick
deployed
to
dev/load-sso-dataflow
November 4, 2026 22:18 — with
GitHub Actions
Active
JeremyMcCormick
temporarily deployed
to
dev/promote-chunks
November 4, 2026 22:18 — with
GitHub Actions
Inactive
JeremyMcCormick
had a problem deploying
to
dev/stage-chunk
November 4, 2026 22:18 — with
GitHub Actions
Failure
The function's entry point is stage_chunk and it deploys as the Cloud Run function stage-chunk. Its GitHub variables are now STAGE_CHUNK_CPU, STAGE_CHUNK_MEMORY and STAGE_CHUNK_TIMEOUT. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VJ51nAbGJ4BBgwpjau1VX7
The function stages the chunk named in each message with ChunkStager, sharing the PPDB, a BigQuery client and the stager across requests. It reads the chunk ID and folder from the message, adds the chunk ID to every log entry, and re-raises only retryable staging errors so that Pub/Sub retries them. The BigQuery limits (BIGQUERY_CHECK_TIMEOUT_SECONDS, BIGQUERY_JOB_TIMEOUT_SECONDS and BIGQUERY_RETRY_TIMEOUT_SECONDS) are read from the environment, set by Terraform. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VJ51nAbGJ4BBgwpjau1VX7
Only the Dataflow staging job published to it. ChunkStager now records chunk statuses in the database directly. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VJ51nAbGJ4BBgwpjau1VX7
ChunkStager stages chunks with BigQuery load jobs, so the Beam job, its container, flex template and build workflows are no longer used. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VJ51nAbGJ4BBgwpjau1VX7
JeremyMcCormick
force-pushed
the
tickets/DM-56864
branch
from
November 5, 2026 01:11
22c85c8 to
4d7bc2f
Compare
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VJ51nAbGJ4BBgwpjau1VX7
JeremyMcCormick
marked this pull request as ready for review
November 6, 2026 23:48
JeremyMcCormick
had a problem deploying
to
int/stage-chunk
November 10, 2026 23:49 — with
GitHub Actions
Failure
JeremyMcCormick
deployed
to
int/load-sso-dataflow
November 10, 2026 23:49 — with
GitHub Actions
Active
The PyPI release of lsst-sdm-schemas has ppdb.yaml 10.0.0, and the databases are created from main (11.0.0). Temporary, like the dax_ppdb branch pin. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VJ51nCVBE3sWQhjpm83YEC
JeremyMcCormick
deployed
to
int/load-sso-dataflow
November 11, 2026 00:09 — with
GitHub Actions
Active
JeremyMcCormick
requested review from
andy-slac
and removed request for
andy-slac
November 11, 2026 01:32
fajpunk
approved these changes
Nov 11, 2026
| workflow_dispatch: | ||
|
|
||
| # Independent jobs deploy all six workloads in parallel. | ||
| # Independent jobs deploy all four workloads in parallel. |
Member
There was a problem hiding this comment.
We can just change all these to "all workloads in parallel." (no number)
This branch was successfully deployed
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.
Summary
The stage chunk function now stages replica chunks with dax_ppdb's chunk stager, which uses BigQuery load jobs, instead of launching a Dataflow job (lsst/dax_ppdb#69). The Dataflow staging job and the track chunk function are removed.
Changes
Stage chunk function
BIGQUERY_CHECK_TIMEOUT_SECONDS,BIGQUERY_JOB_TIMEOUT_SECONDS,BIGQUERY_RETRY_TIMEOUT_SECONDS) from environment variables set by Terraform, and fails at startup if any is missingtrigger_stage_chunktostage_chunk, deployed asstage-chunk, with its GitHub variables renamed toSTAGE_CHUNK_*Removed
Other changes
Deployment notes
TRIGGER_STAGE_CHUNK_*GitHub variables toSTAGE_CHUNK_*in each environment, keeping the old ones until dev and int are migratedSTAGE_CHUNK_TIMEOUTto about 30 minutes, since each BigQuery request can now be retried for up to 5 minutesstage-chunk-deploy-<env>after mergingRelated
🤖 Generated with Claude Code
https://claude.ai/code/session_01VJ51nAbGJ4BBgwpjau1VX7