mirror of
https://github.com/hibiken/asynqmon.git
synced 2025-08-23 22:28:43 +08:00
Show deadline data in ActiveTasksTable
This commit is contained in:
@@ -249,6 +249,7 @@ export interface ActiveTask extends BaseTask {
|
||||
id: string;
|
||||
queue: string;
|
||||
start_time: string;
|
||||
deadline: string;
|
||||
max_retry: number;
|
||||
retried: number;
|
||||
error_message: string;
|
||||
|
@@ -37,7 +37,7 @@ import TablePaginationActions, {
|
||||
import TableActions from "./TableActions";
|
||||
import { usePolling } from "../hooks";
|
||||
import { ActiveTaskExtended } from "../reducers/tasksReducer";
|
||||
import { timeAgo, uuidPrefix } from "../utils";
|
||||
import { durationBefore, timeAgo, uuidPrefix } from "../utils";
|
||||
import { TableColumn } from "../types/table";
|
||||
|
||||
const useStyles = makeStyles((theme) => ({
|
||||
@@ -412,7 +412,9 @@ function Row(props: RowProps) {
|
||||
className={classes.noBottomBorder}
|
||||
align="right"
|
||||
>
|
||||
TODO: In 30s
|
||||
{task.deadline === "-"
|
||||
? "-"
|
||||
: durationBefore(task.deadline)}
|
||||
</TableCell>
|
||||
</TableRow>
|
||||
</TableBody>
|
||||
|
Reference in New Issue
Block a user