Skip to content

Commit 18ef1be

Browse files
committed
bin/enqueue-job: Add support for NormalizeIndex job
1 parent 01af811 commit 18ef1be

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/admin/enqueue_job.rs

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

2428
pub fn run(command: Command) -> Result<()> {
@@ -46,5 +50,6 @@ pub fn run(command: Command) -> Result<()> {
4650
} => Ok(worker::dump_db(database_url, target_name).enqueue(&conn)?),
4751
Command::DailyDbMaintenance => Ok(worker::daily_db_maintenance().enqueue(&conn)?),
4852
Command::SquashIndex => Ok(worker::squash_index().enqueue(&conn)?),
53+
Command::NormalizeIndex { dry_run } => Ok(worker::normalize_index(dry_run).enqueue(&conn)?),
4954
}
5055
}

0 commit comments

Comments
 (0)