mirror of
https://github.com/hibiken/asynqmon.git
synced 2025-01-18 18:55:54 +08:00
add UI support for -1 as Unlimited retry
This commit is contained in:
parent
5c48e4e31d
commit
d68b8ea77c
@ -118,7 +118,7 @@ function Row(props: RowProps) {
|
||||
</SyntaxHighlighter>
|
||||
</TableCell>
|
||||
<TableCell align="right">{task.retried}</TableCell>
|
||||
<TableCell align="right">{task.max_retry}</TableCell>
|
||||
<TableCell align="right">{task.max_retry == -1 ? "unlimited" : task.max_retry}</TableCell>
|
||||
{!window.READ_ONLY && (
|
||||
<TableCell
|
||||
align="center"
|
||||
|
@ -130,7 +130,7 @@ function Row(props: RowProps) {
|
||||
<TableCell>{durationBefore(task.next_process_at)}</TableCell>
|
||||
<TableCell>{task.error_message}</TableCell>
|
||||
<TableCell align="right">{task.retried}</TableCell>
|
||||
<TableCell align="right">{task.max_retry}</TableCell>
|
||||
<TableCell align="right">{task.max_retry == -1 ? "unlimited" : task.max_retry}</TableCell>
|
||||
{!window.READ_ONLY && (
|
||||
<TableCell
|
||||
align="center"
|
||||
|
@ -160,7 +160,7 @@ function TaskDetailsView(props: Props) {
|
||||
Retry:{" "}
|
||||
</Typography>
|
||||
<Typography className={classes.infoValueCell}>
|
||||
{taskInfo?.retried}/{taskInfo?.max_retry}
|
||||
{taskInfo?.retried}/{taskInfo?.max_retry == -1 ? "unlimited" : taskInfo?.max_retry}
|
||||
</Typography>
|
||||
</div>
|
||||
<div className={classes.infoRow}>
|
||||
|
Loading…
Reference in New Issue
Block a user