Skip to content

Commit 542d4ff

Browse files
committed
bin/enqueue-job: Add support for NormalizeIndex job
1 parent 22f58d5 commit 542d4ff

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/bin/enqueue-job.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ enum Command {
1818
},
1919
DailyDbMaintenance,
2020
SquashIndex,
21+
NormalizeIndex {
22+
#[arg(long = "dry-run")]
23+
dry_run: bool,
24+
},
2125
}
2226

2327
fn main() -> Result<()> {
@@ -47,5 +51,6 @@ fn main() -> Result<()> {
4751
} => Ok(worker::dump_db(database_url, target_name).enqueue(&conn)?),
4852
Command::DailyDbMaintenance => Ok(worker::daily_db_maintenance().enqueue(&conn)?),
4953
Command::SquashIndex => Ok(worker::squash_index().enqueue(&conn)?),
54+
Command::NormalizeIndex { dry_run } => Ok(worker::normalize_index(dry_run).enqueue(&conn)?),
5055
}
5156
}

0 commit comments

Comments
 (0)