"feat:enhance-podcast-topic-ai"
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user