mirror of
https://github.com/hibiken/asynqmon.git
synced 2025-10-04 19:22:00 +08:00
Fix build
This commit is contained in:
@@ -197,7 +197,7 @@ func toTaskInfo(info *asynq.TaskInfo, pf PayloadFormatter) *taskInfo {
|
|||||||
NextProcessAt: formatTimeInRFC3339(info.NextProcessAt),
|
NextProcessAt: formatTimeInRFC3339(info.NextProcessAt),
|
||||||
CompletedAt: formatTimeInRFC3339(info.CompletedAt),
|
CompletedAt: formatTimeInRFC3339(info.CompletedAt),
|
||||||
// TODO: Replace this with resultFormatter
|
// TODO: Replace this with resultFormatter
|
||||||
Result: defaultPayloadFormatter.FormatPayload("", info.Result),
|
Result: DefaultPayloadFormatter.FormatPayload("", info.Result),
|
||||||
TTL: int64(taskTTL(info).Seconds()),
|
TTL: int64(taskTTL(info).Seconds()),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -388,7 +388,7 @@ func toCompletedTask(ti *asynq.TaskInfo, pf PayloadFormatter) *completedTask {
|
|||||||
CompletedAt: ti.CompletedAt,
|
CompletedAt: ti.CompletedAt,
|
||||||
TTL: int64(taskTTL(ti).Seconds()),
|
TTL: int64(taskTTL(ti).Seconds()),
|
||||||
// TODO: Use resultFormatter instead
|
// TODO: Use resultFormatter instead
|
||||||
Result: defaultPayloadFormatter.FormatPayload("", ti.Result),
|
Result: DefaultPayloadFormatter.FormatPayload("", ti.Result),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -94,14 +94,14 @@ function CompletedTasksTable(props: Props & ReduxProps) {
|
|||||||
const [selectedIds, setSelectedIds] = useState<string[]>([]);
|
const [selectedIds, setSelectedIds] = useState<string[]>([]);
|
||||||
const [activeTaskId, setActiveTaskId] = useState<string>("");
|
const [activeTaskId, setActiveTaskId] = useState<string>("");
|
||||||
|
|
||||||
const handleChangePage = (
|
const handlePageChange = (
|
||||||
event: React.MouseEvent<HTMLButtonElement> | null,
|
event: React.MouseEvent<HTMLButtonElement> | null,
|
||||||
newPage: number
|
newPage: number
|
||||||
) => {
|
) => {
|
||||||
setPage(newPage);
|
setPage(newPage);
|
||||||
};
|
};
|
||||||
|
|
||||||
const handleChangeRowsPerPage = (
|
const handleRowsPerPageChange = (
|
||||||
event: React.ChangeEvent<HTMLInputElement | HTMLTextAreaElement>
|
event: React.ChangeEvent<HTMLInputElement | HTMLTextAreaElement>
|
||||||
) => {
|
) => {
|
||||||
props.taskRowsPerPageChange(parseInt(event.target.value, 10));
|
props.taskRowsPerPageChange(parseInt(event.target.value, 10));
|
||||||
@@ -253,8 +253,8 @@ function CompletedTasksTable(props: Props & ReduxProps) {
|
|||||||
inputProps: { "aria-label": "rows per page" },
|
inputProps: { "aria-label": "rows per page" },
|
||||||
native: true,
|
native: true,
|
||||||
}}
|
}}
|
||||||
onChangePage={handleChangePage}
|
onPageChange={handlePageChange}
|
||||||
onChangeRowsPerPage={handleChangeRowsPerPage}
|
onRowsPerPageChange={handleRowsPerPageChange}
|
||||||
ActionsComponent={TablePaginationActions}
|
ActionsComponent={TablePaginationActions}
|
||||||
className={classes.pagination}
|
className={classes.pagination}
|
||||||
/>
|
/>
|
||||||
|
Reference in New Issue
Block a user