Skip to content

Feat; Create new table for collector configuration - #2157

Merged
Kobzol merged 6 commits into
rust-lang:masterfrom
Jamesbarford:feat/collector-config-table
Jul 17, 2025
Merged

Feat; Create new table for collector configuration#2157
Kobzol merged 6 commits into
rust-lang:masterfrom
Jamesbarford:feat/collector-config-table

Conversation

@Jamesbarford

@Jamesbarford Jamesbarford commented Jun 11, 2025

Copy link
Copy Markdown
Contributor

Creates a table for collector configuration; storing the target, whether the collector is active and able to take work. Has a heartbeat column so we can see if the collector goes offline. benchmark_set is for when we start splitting work between collectors

Comment thread database/src/pool/postgres.rs Outdated
Comment thread database/src/pool/postgres.rs Outdated

@Kobzol Kobzol left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! I think that the table looks good like it is, but also I don't think we necessarily need to merge this outright.

So I'd keep this lying here until we have some actual code (probably first in the website) that actually needs to use this table, and then write the corresponding DbPool queries so that we have a user of the table. Maybe we'll figure out that we need some additional columns by then or something.

Comment thread database/schema.md Outdated
Comment thread database/src/pool/sqlite.rs Outdated
Comment thread database/src/pool/postgres.rs Outdated
Comment thread database/src/pool/postgres.rs
@Jamesbarford
Jamesbarford force-pushed the feat/collector-config-table branch from adc0417 to e8b9121 Compare July 14, 2025 12:24
Comment thread database/schema.md Outdated
Comment thread database/schema.md Outdated
Comment thread database/src/pool/postgres.rs Outdated
@Jamesbarford
Jamesbarford force-pushed the feat/collector-config-table branch from ad866ba to 2e7ced8 Compare July 17, 2025 09:51

@Kobzol Kobzol left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@Kobzol
Kobzol merged commit 2120e3b into rust-lang:master Jul 17, 2025
11 checks passed
@Jamesbarford
Jamesbarford deleted the feat/collector-config-table branch August 21, 2025 07:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants