devtools: refresh scheduled tasks after trigger or cancel
Closes #32861 Triggering or cancelling a scheduled task from the DevTools Scheduled Tasks page previously left the table showing the pre-action state, so users had to refresh the browser (which also reset the plugin selector) to see the new status. Switch `useScheduledTasks` to `useAsyncRetry` so it exposes a `refresh` function, and call it after each trigger/cancel action in `ScheduledTasksContent`. The refresh happens in a `finally` block so the table also updates when the action itself fails, reflecting whatever the backend ended up recording. Signed-off-by: Asish Kumar <officialasishkumar@gmail.com>
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@backstage/plugin-devtools': patch
|
||||
---
|
||||
|
||||
Scheduled Tasks page now refreshes its table automatically after a task is triggered or cancelled, so the updated status is visible without reloading the browser.
|
||||
Reference in New Issue
Block a user