-
Notifications
You must be signed in to change notification settings - Fork 811
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement retry task #600
Implement retry task #600
Conversation
…src/' <!-- ELLIPSIS_HIDDEN --> | 🚀 | This description was created by [Ellipsis](https://www.ellipsis.dev) for commit 4abb6c2dc803fb970daf0a6be0295ababac89550 | |--------|--------| ### Summary: Added retry functionality for tasks, including a new route, component, and UI updates for retrying tasks in terminal states. **Key points**: - Added `RetryTask` component in `skyvern-frontend/src/routes/tasks/create/retry/RetryTask.tsx`. - Updated `skyvern-frontend/cloud/router.tsx` and `skyvern-frontend/src/router.tsx` to include new route `retry/:taskId`. - Created `taskIsFinalized` function in `skyvern-frontend/src/api/utils.ts` to check if a task is in a terminal state. - Updated `TaskDetails` component in `skyvern-frontend/src/routes/tasks/detail/TaskDetails.tsx` to show a retry button for tasks in terminal states. - Added retry option in task actions dropdown in `TaskActions` component in `skyvern-frontend/src/routes/tasks/list/TaskActions.tsx`. ---- Generated with ❤️ by [ellipsis.dev](https://www.ellipsis.dev) <!-- ELLIPSIS_HIDDEN -->
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❌ Changes requested. Reviewed everything up to c4b2ba0 in 41 seconds
More details
- Looked at
165
lines of code in5
files - Skipped
0
files when reviewing. - Skipped posting
0
drafted comments based on config settings.
Workflow ID: wflow_ucpNb1irrli6QgxA
Want Ellipsis to fix these issues? Tag @ellipsis-dev
in a comment. You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
import { useTaskQuery } from "../../detail/hooks/useTaskQuery"; | ||
import { CreateNewTaskForm } from "../CreateNewTaskForm"; | ||
|
||
function RetryTask() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider adding a check to ensure the task is in a terminal state before rendering the CreateNewTaskForm
. This can prevent users from retrying tasks that should not be retried.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❌ Changes requested. Incremental review on c4b2ba0 in 49 seconds
More details
- Looked at
164
lines of code in5
files - Skipped
0
files when reviewing. - Skipped posting
0
drafted comments based on config settings.
Workflow ID: wflow_AGSmbN1xtXhj6GZ9
Want Ellipsis to fix these issues? Tag @ellipsis-dev
in a comment. You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
import { useTaskQuery } from "../../detail/hooks/useTaskQuery"; | ||
import { CreateNewTaskForm } from "../CreateNewTaskForm"; | ||
|
||
function RetryTask() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The RetryTask
component should verify that the task is in a terminal state before allowing a retry. This is crucial to prevent users from retrying tasks that are not eligible for retry. Consider adding a check using the taskIsFinalized
function and handling the case where the task is not finalized appropriately.
Summary:
Added retry functionality for tasks in terminal states, including a new route, component, and UI updates for retrying tasks.
Key points:
RetryTask
component inskyvern-frontend/src/routes/tasks/create/retry/RetryTask.tsx
.skyvern-frontend/cloud/router.tsx
andskyvern-frontend/src/router.tsx
to include new routeretry/:taskId
.taskIsFinalized
function inskyvern-frontend/src/api/utils.ts
to check if a task is in a terminal state.TaskDetails
component inskyvern-frontend/src/routes/tasks/detail/TaskDetails.tsx
to show a retry button for tasks in terminal states.TaskActions
component inskyvern-frontend/src/routes/tasks/list/TaskActions.tsx
.Generated with ❤️ by ellipsis.dev