Smartstack: shipper queue - #473
Open
timbeccue wants to merge 7 commits into
Open
Conversation
This was referenced Aug 6, 2026
timbeccue
marked this pull request as ready for review
August 7, 2026 06:40
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
This is PR 4 of 8 completing the v1 banzai implementation of Smartstacking at site.
PR1 (#469): combine math
PR2 (#470): JPEG utilities
PR3 (#471): DB updates
PR4 (#473): shipper contract <-- you are here
PR5 (#474): smartstack data products
PR6 (#475): stack worker polling
PR7 (#476): e2e tests, compose cleanup
PR8 (#477): logging
PRs 1–4 provide the independent foundations for combining images, rendering JPEGs, storing stack state, and shipper integration (this PR). PR5 builds the products, PR6 adds the polling worker, and PR7–8 add end-to-end proof, logging, and final documentation.
What changes here
Added methods to post data to the shipper queue. In the case of smartstack previews, this includes passing in a subset of the fits header so that the ingester has the metadata it needs without the inclusion of a fits file.
Publishing contract
post_to_shipper_queue()publishes UTF-8, plain-text JSON:fitse45FITS pathnullsmall_thumbnaillarge_thumbnailinstrument_enqueue_timestampthumbnail_metadataThe publisher also:
New settings provide these defaults:
SHIPPER_EXCHANGE=ship_filesSHIPPER_QUEUE_NAME=shipSMARTSTACK_PREVIEWS=trueScope
This PR defines and tests the publishing boundary only. It does not create products or decide when to preview, finalize, or retry; those responsibilities belong to PR5 and PR6.
Focused tests cover the durable binding, plain-text JSON bodies for previews and finals, optional thumbnail metadata, publisher confirms, and timeout options.