Skip to content
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

Merged
merged 1 commit into from
Jul 12, 2024
Merged

Implement retry task #600

merged 1 commit into from
Jul 12, 2024

Conversation

ykeremy
Copy link
Contributor

@ykeremy ykeremy commented Jul 12, 2024

🚀 This description was created by Ellipsis for commit c4b2ba0

Summary:

Added retry functionality for tasks in terminal states, including a new route, component, and UI updates for retrying tasks.

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

…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 -->
@ykeremy ykeremy added the sync label Jul 12, 2024
Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a 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 in 5 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() {
Copy link
Contributor

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.

Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a 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 in 5 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() {
Copy link
Contributor

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.

@msalihaltun msalihaltun merged commit f4edcba into main Jul 12, 2024
2 checks passed
@msalihaltun msalihaltun deleted the salih/retry-task branch July 12, 2024 11:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants