everything looked perfect on my dashboard w/ every single deploy showing green. the problem was that our scheduler had been lagging behind by
two weeks and i couldn't figure out why. yesterday i finally decided to just delete a specific scheduled task and push the update. i watched five separate health checks pass successfully in the pipeline. then i checked the server and realized the task was
still running like nothing happened. it turns out the entire logic for this hourly celery beat task was just:
# TODO: Implement actual cleanup logic cleaned_count = 0 # Placeholder logger.info(f"Cleanup completed: removed {cleaned_count} expired results") return {"status": "complet...>it was literally just a placeholder that someone forgot to finishit was basically a zombie process masquerading as real work
i almost lost my mind checking the logs for errors that didn't exist . has anyone else ever dealt with a deployment that says everything is fine while the server is actually running dead code?
link:
https://dev.to/aghassis/every-deploy-said-green-the-scheduler-was-two-weeks-behind-17db