Skip to content

Commit

Permalink
fix: worker build and admin page
Browse files Browse the repository at this point in the history
  • Loading branch information
Jamesb committed Feb 24, 2024
1 parent 368d913 commit 7ec86d2
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/client/src/components/AdminPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ export const AdminPage = () => {
)}
</TableCell>
<TableCell>
{task.status === "failed" && (
{
<Button
onClick={() =>
handleRetryTask(task.jobId)
Expand All @@ -148,7 +148,7 @@ export const AdminPage = () => {
>
Retry Now
</Button>
)}
}
</TableCell>
</TableRow>
))}
Expand Down
6 changes: 5 additions & 1 deletion packages/server/src/routers/adminRouter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,11 @@ export const adminRouter = router({
runAt: new Date(),
attempts: 0,
});
console.log("rescheduled", xs);
if (xs.length === 0) {
console.log("no jobs rescheduled");
} else {
console.log("rescheduled job");
}
}),
cancelPipelineTask: publicProcedure
.input(
Expand Down
2 changes: 2 additions & 0 deletions render.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ services:
paths:
- packages/server/**/*.ts
- packages/server/**/*.py
- packages/cli/**/*.ts
- packages/cli/**/*.py
envVars:
- key: SKIP_INSTALL_DEPS
value: true
Expand Down

0 comments on commit 7ec86d2

Please sign in to comment.