I already have a cron job in place that monitors each user’s balance and should disconnect an active call, chat, or video session when funds run low. The core logic is there, but a few basic errors are preventing it from working reliably. Here’s what I need: • Audit the current cron script, identify the faults, and correct them. • Ensure the task runs at the correct interval and updates the database without race conditions. • Tie the balance check to my existing real-time socket layer so the user is instantly disconnected when the threshold is hit. • Keep the solution lightweight—no major rewrites, just solid fixes and clear comments so I can maintain it. You’ll be working directly on the live server via remote access, so experience with secure shell sessions and quick rollbacks is important. If you know cron scheduling inside out and have handled real-time sockets before, this should be a straightforward assignment.