"feat:enhance-podcast-topic-ai"

This commit is contained in:
ajaysi
2026-03-11 19:09:27 +05:30
parent e472861967
commit 01881bb405
51 changed files with 3627 additions and 218 deletions

View File

@@ -2,6 +2,7 @@ import { useEffect, useRef } from 'react';
import { useAuth } from '@clerk/clerk-react';
import { showToastNotification } from '../utils/toastNotifications';
import { getTasksNeedingIntervention, TaskNeedingIntervention } from '../api/schedulerDashboard';
import { isBackendCooldownActive, logBackendCooldownSkipOnce } from '../api/client';
/**
* Hook to poll for tasks needing intervention and show toast notifications
@@ -27,6 +28,11 @@ export function useSchedulerTaskAlerts(options: {
return;
}
if (isBackendCooldownActive()) {
logBackendCooldownSkipOnce('useSchedulerTaskAlerts');
return;
}
try {
isPollingRef.current = true;