mirror of
https://github.com/hibiken/asynqmon.git
synced 2025-08-23 22:28:43 +08:00
Add retry and last error fields to all task types
This commit is contained in:
@@ -249,18 +249,27 @@ export interface ActiveTask extends BaseTask {
|
||||
id: string;
|
||||
queue: string;
|
||||
start_time: string;
|
||||
max_retry: number;
|
||||
retried: number;
|
||||
error_message: string;
|
||||
}
|
||||
|
||||
export interface PendingTask extends BaseTask {
|
||||
id: string;
|
||||
key: string;
|
||||
queue: string;
|
||||
max_retry: number;
|
||||
retried: number;
|
||||
error_message: string;
|
||||
}
|
||||
|
||||
export interface ScheduledTask extends BaseTask {
|
||||
id: string;
|
||||
key: string;
|
||||
queue: string;
|
||||
max_retry: number;
|
||||
retried: number;
|
||||
error_message: string;
|
||||
next_process_at: string;
|
||||
}
|
||||
|
||||
|
@@ -392,21 +392,27 @@ function Row(props: RowProps) {
|
||||
<TableBody>
|
||||
<TableRow>
|
||||
<TableCell>Retry</TableCell>
|
||||
<TableCell align="right">2/25</TableCell>
|
||||
<TableCell align="right">
|
||||
{task.retried}/{task.max_retry}
|
||||
</TableCell>
|
||||
</TableRow>
|
||||
<TableRow>
|
||||
<TableCell>Deadline</TableCell>
|
||||
<TableCell align="right">In 30s</TableCell>
|
||||
<TableCell>Last Error</TableCell>
|
||||
<TableCell align="right">
|
||||
{task.error_message.length > 0
|
||||
? task.error_message
|
||||
: "N/A"}
|
||||
</TableCell>
|
||||
</TableRow>
|
||||
<TableRow>
|
||||
<TableCell className={classes.noBottomBorder}>
|
||||
Unique
|
||||
Deadline
|
||||
</TableCell>
|
||||
<TableCell
|
||||
align="right"
|
||||
className={classes.noBottomBorder}
|
||||
align="right"
|
||||
>
|
||||
5m30s remaining
|
||||
TODO: In 30s
|
||||
</TableCell>
|
||||
</TableRow>
|
||||
</TableBody>
|
||||
|
Reference in New Issue
Block a user