fix: reduce aggressive orphaned position monitoring frequency
- Changed position monitor interval from 30 seconds to 5 minutes (300s) - Reduced verbose logging in position monitor API - Only log orphaned order checks when orders are actually found - Prevents log flooding while maintaining functionality - 90% reduction in monitoring frequency (30s → 300s) - Cleaner logs with less noise - Still catches orphaned orders effectively - Better system performance with reduced API calls Verified: - Automation page now runs monitor every 5 minutes - Position monitor API only logs when orphaned orders exist - System still functions correctly for cleanup
This commit is contained in:
@@ -40,8 +40,7 @@ export default function AutomationPageV2() {
|
||||
fetchBalance()
|
||||
fetchPositions()
|
||||
fetchMonitorData()
|
||||
fetchMonitorData()
|
||||
}, 30000)
|
||||
}, 300000) // 5 minutes instead of 30 seconds
|
||||
return () => clearInterval(interval)
|
||||
}, [])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user