Skip to content

Commit

Permalink
Pass dump date in correct format
Browse files Browse the repository at this point in the history
  • Loading branch information
mmarx committed Dec 13, 2023
1 parent 71f682f commit bd20cf7
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions helpers/rust/src/jobs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,9 @@ use chrono::NaiveDate;
pub(super) fn do_dump_processing(dump_file: &str, dump_date: &NaiveDate) -> Result<()> {
let sqid = current_exe().context("failed to get executable path")?;
let sqid = sqid.to_str().expect("should be valid UTF-8");
let dump_date = dump_date.format("%Y%m%d").to_string();
let mut command = Command::new(sqid);
command.args([
"--only=process-dump",
"--date",
&format!("{dump_date}"),
"--",
dump_file,
]);
command.args(["--only=process-dump", "--date", &dump_date, "--", dump_file]);

log::info!("executing: {command:?}");

Expand Down

0 comments on commit bd20cf7

Please sign in to comment.