-
-
Notifications
You must be signed in to change notification settings - Fork 721
feat: replicate task runs to clickhouse to power dashboard improvements #2035
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
Merged
Changes from 26 commits
Commits
Show all changes
33 commits
Select commit
Hold shift + click to select a range
ba7c8a1
WIP clickhouse package with test containers setup
ericallam a49930a
More clickhouse client setup now with otel and real tests, and the v1…
ericallam 5cd2d20
Add some additional columns to raw_run_events_v1
ericallam 9a1fd64
WIP runs dashboard service
ericallam bae987d
Create a new run engine event bus event for the runs dashboard to hoo…
ericallam 3349897
Track run events in the run engine
ericallam 4a6e9c2
make sure engine v1 runs get synced to CH
ericallam cc6695c
Update the attemptNumber of v3 task runs
ericallam 04b2039
Restructure the run events to be more sparse
ericallam 56aeaf0
emit more stuff
ericallam a8533e0
Setup replication package
ericallam 1c00d98
scaffold the replication package
ericallam 1c14125
replication wip
ericallam cde1bfb
resolve conflicts
ericallam f3dc43b
more replication stuff
ericallam fa4185b
Add ability to drop the replication slot completely on teardown
ericallam ee13ebb
Use the new single replacingmergetree task events table for replication
ericallam c30a014
get it working
ericallam 2131b66
insert payloads into their own table only on insert and then join
ericallam f3e9041
prepare for using clickhouse cloud and now running ch migrations duri…
ericallam da0565e
Handover WIP and tests
ericallam fc6b69b
Testing the replication service
ericallam 651d51a
Remove the runs dashboard stuff that we aren't using anymore
ericallam b8dc32d
Added a test for large payloads
ericallam ae14fa2
hacky typecheck fix
ericallam 1d7c2ad
Fix new internal package typecheck issues and start adding telemetry …
ericallam 955bc25
tracing over spans, some other improvements
ericallam 3c50bfe
Improvements to the runs replication service, now ready for testing
ericallam 14a4183
Some fixes and cleanups
ericallam 024c30a
Don't need this code anymore
ericallam aaf65cc
move transaction types into the runs replication service
ericallam beabd26
only send spans where there are transaction events
ericallam 5466599
A couple of suggested tweaks
ericallam 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
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,7 @@ | ||
global: | ||
scrape_interval: 15s # how often to scrape targets | ||
|
||
scrape_configs: | ||
- job_name: "trigger-dev" | ||
static_configs: | ||
- targets: ["localhost:3030"] |
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
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Guard ClickHouse URL when replication is enabled
RUN_REPLICATION_CLICKHOUSE_URL
is optional even whenRUN_REPLICATION_ENABLED = "1"
.Starting replication without a ClickHouse endpoint will fail at runtime rather than at boot.
Add a cross-field refinement:
This surfaces mis-configuration early and matches the behaviour of other critical features that gate on env-vars.
📝 Committable suggestion