Skip to content

Commit

Permalink
Use the correct background task name (#6348)
Browse files Browse the repository at this point in the history
region_snapshot_replacement -> region_snapshot_replacement_start
  • Loading branch information
jmpesp authored Aug 15, 2024
1 parent 64ef70c commit 93aa572
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dev-tools/omdb/src/bin/omdb/nexus.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1453,7 +1453,7 @@ fn print_task_details(bgtask: &BackgroundTask, details: &serde_json::Value) {
}
}
};
} else if name == "region_snapshot_replacement" {
} else if name == "region_snapshot_replacement_start" {
match serde_json::from_value::<RegionSnapshotReplacementStartStatus>(
details.clone(),
) {
Expand Down
8 changes: 6 additions & 2 deletions dev-tools/omdb/tests/successes.out
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,9 @@ task: "region_snapshot_replacement_start"
currently executing: no
last completed activation: <REDACTED ITERATIONS>, triggered by a periodic timer firing
started at <REDACTED TIMESTAMP> (<REDACTED DURATION>s ago) and ran for <REDACTED DURATION>ms
warning: unknown background task: "region_snapshot_replacement_start" (don't know how to interpret details: Object {"errors": Array [], "requests_created_ok": Array [], "start_invoked_ok": Array []})
total requests created ok: 0
total start saga invoked ok: 0
errors: 0

task: "saga_recovery"
configured period: every 10m
Expand Down Expand Up @@ -993,7 +995,9 @@ task: "region_snapshot_replacement_start"
currently executing: no
last completed activation: <REDACTED ITERATIONS>, triggered by a periodic timer firing
started at <REDACTED TIMESTAMP> (<REDACTED DURATION>s ago) and ran for <REDACTED DURATION>ms
warning: unknown background task: "region_snapshot_replacement_start" (don't know how to interpret details: Object {"errors": Array [], "requests_created_ok": Array [], "start_invoked_ok": Array []})
total requests created ok: 0
total start saga invoked ok: 0
errors: 0

task: "saga_recovery"
configured period: every 10m
Expand Down

0 comments on commit 93aa572

Please sign in to comment.