Repository navigation
BE-1256: Add the hash-graph relay subcommand and its compose service - #10704
Draft
TimDiekmann wants to merge 2 commits into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
2 Skipped Deployments
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## t/be-1234-publish-the-entity-outbox-from-a-relay #10704 +/- ##
====================================================================================
- Coverage 70.35% 70.33% -0.02%
====================================================================================
Files 2142 2143 +1
Lines 226527 226572 +45
Branches 9820 9821 +1
====================================================================================
Hits 159367 159367
- Misses 65109 65154 +45
Partials 2051 2051
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
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.
🌟 Purpose
The relay loop in
hash-graph-relayhas no entry point, so nothing runs it. This PR adds thehash-graph relaysubcommand and a compose service for it.🔍 Changes
hash-graph relayholds one database connection, runs the loop on it and stops on Ctrl-C.--name,--page-sizeand--poll-interval-msare also read fromHASH_GRAPH_RELAY_*.graph-relayin the compose stack runs the subcommand from the graph image, after the migrations.log. A queue publisher follows and gets a name, and with it a cursor, of its own.task-dependencies.jsonfiles also pick uphash-queue, which BE-1233: Add thehash-queuecrate for RabbitMQ jobs and an entity embedding worker #10700 below has not regenerated.SIGINTonly, like the other subcommands. OnSIGTERMthe lock is released as well, and at worst one page is published twice.