mirror of
https://github.com/hibiken/asynqmon.git
synced 2025-01-19 03:05:53 +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>
|
</SyntaxHighlighter>
|
||||||
</TableCell>
|
</TableCell>
|
||||||
<TableCell align="right">{task.retried}</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 && (
|
{!window.READ_ONLY && (
|
||||||
<TableCell
|
<TableCell
|
||||||
align="center"
|
align="center"
|
||||||
|
@ -130,7 +130,7 @@ function Row(props: RowProps) {
|
|||||||
<TableCell>{durationBefore(task.next_process_at)}</TableCell>
|
<TableCell>{durationBefore(task.next_process_at)}</TableCell>
|
||||||
<TableCell>{task.error_message}</TableCell>
|
<TableCell>{task.error_message}</TableCell>
|
||||||
<TableCell align="right">{task.retried}</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 && (
|
{!window.READ_ONLY && (
|
||||||
<TableCell
|
<TableCell
|
||||||
align="center"
|
align="center"
|
||||||
|
@ -160,7 +160,7 @@ function TaskDetailsView(props: Props) {
|
|||||||
Retry:{" "}
|
Retry:{" "}
|
||||||
</Typography>
|
</Typography>
|
||||||
<Typography className={classes.infoValueCell}>
|
<Typography className={classes.infoValueCell}>
|
||||||
{taskInfo?.retried}/{taskInfo?.max_retry}
|
{taskInfo?.retried}/{taskInfo?.max_retry == -1 ? "unlimited" : taskInfo?.max_retry}
|
||||||
</Typography>
|
</Typography>
|
||||||
</div>
|
</div>
|
||||||
<div className={classes.infoRow}>
|
<div className={classes.infoRow}>
|
||||||
|
Loading…
Reference in New Issue
Block a user