Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,15 @@ class BackfillShowAction @Inject constructor(
partition.computed_matching_record_count,
)
}
td("hidden py-5 pl-8 pr-0 text-right align-top tabular-nums text-gray-700 sm:table-cell") { +"""${partition.matching_records_per_minute} #/m""" }
td("hidden py-5 pl-8 pr-0 text-right align-top tabular-nums text-gray-700 sm:table-cell") {
when {
partition.state != BackfillState.RUNNING -> +"-"
!partition.precomputing_done -> +"Computing..."
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Records per minute shouldn't depend on the precomputing step. That is literally the rate of runBatch only and those should start right away.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

when I tested this out, the values were always 0 when precomputing was set to False, then when its set to True, the value gets filled.
Screenshot 2025-04-22 at 10 57 19 AM
Screenshot 2025-04-22 at 10 56 38 AM

partition.matching_records_per_minute == null ||
partition.matching_records_per_minute <= 0 -> +"Calculating..."
else -> +"""${partition.matching_records_per_minute} #/m"""
}
}
// TODO properly calculate the ETA until finished
td("py-5 pl-8 pr-0 text-right align-top tabular-nums text-gray-700") { +"""ETA TODO""" }
}
Expand Down