Update UI code with new API

This commit is contained in:
Ken Hibino
2021-05-28 15:02:52 -07:00
parent fa313ce180
commit 565dfb4ccf
11 changed files with 317 additions and 714 deletions

View File

@@ -273,19 +273,19 @@ function Row(props: RowProps) {
</TableHead>
<TableBody>
{server.active_workers.map((worker) => (
<TableRow key={worker.task.id}>
<TableRow key={worker.task_id}>
<TableCell component="th" scope="row">
{uuidPrefix(worker.task.id)}
{uuidPrefix(worker.task_id)}
</TableCell>
<TableCell>
<SyntaxHighlighter
language="json"
customStyle={{ margin: 0 }}
>
{JSON.stringify(worker.task.payload)}
{JSON.stringify(worker.task_payload)}
</SyntaxHighlighter>
</TableCell>
<TableCell>{worker.task.queue}</TableCell>
<TableCell>{worker.queue}</TableCell>
<TableCell>{timeAgo(worker.start_time)}</TableCell>
</TableRow>
))}