[taskboard] add dispatch control plane
This commit is contained in:
13
app/dispatch/page.tsx
Normal file
13
app/dispatch/page.tsx
Normal file
@@ -0,0 +1,13 @@
|
||||
import { DispatchHistory } from "@/components/dispatch-history";
|
||||
import { listFailedTasks, listTaskEvents } from "@/lib/tasks";
|
||||
|
||||
export const dynamic = "force-dynamic";
|
||||
|
||||
export default async function DispatchPage() {
|
||||
const [events, failedTasks] = await Promise.all([
|
||||
listTaskEvents(undefined, 50),
|
||||
listFailedTasks(),
|
||||
]);
|
||||
|
||||
return <DispatchHistory events={events} failedTasks={failedTasks} />;
|
||||
}
|
||||
Reference in New Issue
Block a user