Skip to content

Commit

Permalink
Refresh task app every 15 seconds, refresh task app on cancel
Browse files Browse the repository at this point in the history
Signed-off-by: Aaron Chong <[email protected]>
  • Loading branch information
aaronchongth committed Feb 15, 2024
1 parent 0374aa4 commit 79f3aff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ export function TaskCancelButton({
});
appController.showAlert('success', 'Successfully cancelled task');
AppEvents.taskSelect.next(null);
AppEvents.refreshTaskApp.next();
} catch (e) {
appController.showAlert('error', `Failed to cancel task: ${(e as Error).message}`);
}
Expand Down
2 changes: 1 addition & 1 deletion packages/dashboard/src/components/tasks/tasks-app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import { TaskSchedule } from './task-schedule';
import { TaskSummary } from './task-summary';
import { downloadCsvFull, downloadCsvMinimal } from './utils';

const RefreshTaskQueueTableInterval = 30000;
const RefreshTaskQueueTableInterval = 15000;

enum TaskTablePanel {
QueueTable = 0,
Expand Down

0 comments on commit 79f3aff

Please sign in to comment.