Skip to content

Commit 8c8de36

Browse files
committed
admin: Rename backfill-og-images to render-og-images
The initial backfill is finished, but this tool can still be useful to manually trigger rerenders, so we will rename to reflect that new purpose.
1 parent 252b6fc commit 8c8de36

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/bin/crates-admin/main.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
#[macro_use]
22
extern crate tracing;
33

4-
mod backfill_og_images;
54
mod default_versions;
65
mod delete_crate;
76
mod delete_version;
87
mod dialoguer;
98
mod enqueue_job;
109
mod migrate;
1110
mod populate;
11+
mod render_og_images;
1212
mod render_readmes;
1313
mod transfer_crates;
1414
mod upload_index;
@@ -18,7 +18,7 @@ mod yank_version;
1818
#[derive(clap::Parser, Debug)]
1919
#[command(name = "crates-admin")]
2020
enum Command {
21-
BackfillOgImages(backfill_og_images::Opts),
21+
RenderOgImages(render_og_images::Opts),
2222
DeleteCrate(delete_crate::Opts),
2323
DeleteVersion(delete_version::Opts),
2424
Populate(populate::Opts),
@@ -48,7 +48,7 @@ async fn main() -> anyhow::Result<()> {
4848
span.record("command", tracing::field::debug(&command));
4949

5050
match command {
51-
Command::BackfillOgImages(opts) => backfill_og_images::run(opts).await,
51+
Command::RenderOgImages(opts) => render_og_images::run(opts).await,
5252
Command::DeleteCrate(opts) => delete_crate::run(opts).await,
5353
Command::DeleteVersion(opts) => delete_version::run(opts).await,
5454
Command::Populate(opts) => populate::run(opts).await,

src/bin/crates-admin/backfill_og_images.rs renamed to src/bin/crates-admin/render_og_images.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ use tracing::{info, warn};
99

1010
#[derive(clap::Parser, Debug)]
1111
#[command(
12-
name = "backfill-og-images",
13-
about = "Enqueue OG image generation jobs for existing crates"
12+
name = "render-og-images",
13+
about = "Enqueue OG image generation jobs for crates"
1414
)]
1515
pub struct Opts {
1616
#[arg(long, default_value = "1000")]
@@ -29,7 +29,7 @@ pub struct Opts {
2929
pub async fn run(opts: Opts) -> Result<()> {
3030
let mut conn = db::oneoff_connection().await?;
3131

32-
info!("Starting OG image backfill with options: {opts:?}");
32+
info!("Starting OG image rendering with options: {opts:?}");
3333

3434
// Helper function to build query
3535
let build_query = |offset: i64| {

0 commit comments

Comments
 (0)