Closed ykeremy closed 2 weeks ago
Fix 2 bugs in this PR after https://github.com/Skyvern-AI/skyvern-cloud/commit/5d1656d49951255a365d80285bdb8da13a0c07f2
Fixes task validation and updates frontend components to handle 'canceled' status appropriately.
Key points:
canceled
scripts/run_task.py
TaskStatus.canceled
skyvern/forge/sdk/models.py
StepStatus.canceled
is_terminal
Status
skyvern-frontend/src/api/types.ts
StatusBadge
skyvern-frontend/src/components/StatusBadge.tsx
TaskDetails
skyvern-frontend/src/routes/tasks/detail/TaskDetails.tsx
TaskHistory
skyvern-frontend/src/routes/tasks/list/TaskHistory.tsx
Generated with :heart: by ellipsis.dev
Fix 2 bugs in this PR after https://github.com/Skyvern-AI/skyvern-cloud/commit/5d1656d49951255a365d80285bdb8da13a0c07f2
Summary:
Fixes task validation and updates frontend components to handle 'canceled' status appropriately.
Key points:
canceled
status in task execution and terminal state determination.scripts/run_task.py
to check forTaskStatus.canceled
before executing a task.skyvern/forge/sdk/models.py
to includeStepStatus.canceled
in theis_terminal
method.canceled
status are not executed and are treated as terminal states.canceled
status toStatus
object inskyvern-frontend/src/api/types.ts
.StatusBadge
component inskyvern-frontend/src/components/StatusBadge.tsx
to handlecanceled
status.TaskDetails
component inskyvern-frontend/src/routes/tasks/detail/TaskDetails.tsx
to include a cancel button and handlecanceled
status.TaskHistory
component inskyvern-frontend/src/routes/tasks/list/TaskHistory.tsx
to includecanceled
status in task queries.Generated with :heart: by ellipsis.dev