- Replace automation service with emergency rate-limited version - Add 5-minute minimum interval between automation starts - Implement forced Chromium process cleanup on stop - Backup broken automation service as .broken file - Emergency service prevents multiple simultaneous automations - Fixed 1400+ Chromium process accumulation issue - Tested and confirmed: rate limiting works, processes stay at 0
18 lines
364 B
JavaScript
18 lines
364 B
JavaScript
import { emergencyAutomation } from '../../../../lib/emergency-automation'
|
|
|
|
export async function GET() {
|
|
try {
|
|
const status = emergencyAutomation.getStatus()
|
|
|
|
return Response.json({
|
|
success: true,
|
|
status
|
|
})
|
|
} catch (error) {
|
|
return Response.json({
|
|
success: false,
|
|
error: error.message
|
|
}, { status: 500 })
|
|
}
|
|
}
|