frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

EVs are making your air cleaner – Grist

https://grist.org/solutions/evs-are-already-making-your-air-cleaner/
1•rbanffy•3m ago•0 comments

A Record Player Gave Me the Idea to Revive the Home Computer

https://text.tchncs.de/r3nun0mxs9
1•doener•4m ago•0 comments

Why is collapsing a Hacker News comment so slow?

https://github.com/thewarpaint/eduardogarcia.xyz/blob/master/_posts/2019-06-05-hacker-news-commen...
1•smusamashah•6m ago•0 comments

Best of Moltbook

https://www.astralcodexten.com/p/best-of-moltbook
1•oavioklein•7m ago•0 comments

SwiftNet v0.4.0 Release (Networking library written in C)

https://github.com/Morcules/SwiftNet
1•morcules•7m ago•1 comments

US judge rules Luigi Mangione won't face death penalty in CEO killing case

https://www.aljazeera.com/news/2026/1/30/us-judge-rules-mangione-will-not-face-death-penalty-for-...
1•Qem•8m ago•0 comments

Use Your LM Studio Models in Claude Code

https://lmstudio.ai/blog/claudecode
1•huydotnet•10m ago•0 comments

Dash: A self-learning data agent inspired by OpenAI's in-house data agent

https://github.com/agno-agi/data-agent
1•ashpreetagno•12m ago•0 comments

GPT-Erdos – GPT 5.2 attempts to solve Erdos problems, reviewed by mathematicians

https://github.com/neelsomani/gpt-erdos
1•yread•12m ago•1 comments

Ask HN: Is understanding code becoming "optional"?

2•mikaelaast•16m ago•3 comments

Developing a 3200MP linear scan medium format camera [video]

https://www.youtube.com/watch?v=KSvjJGbFCws
1•rubyn00bie•20m ago•0 comments

Ask HN: Research on LLMs Predicting Behavior?

2•turth•22m ago•0 comments

ICE's surveillance technology goes beyond facial recognition

https://sahanjournal.com/immigration/ice-surveillance-technology-facial-recognition-phones-minnes...
6•rbanffy•25m ago•1 comments

The World Files for Economic Divorce from America

https://paulkrugman.substack.com/p/the-world-files-for-economic-divorce
3•rbanffy•30m ago•0 comments

Show HN: TabChop a truly painless way to split a tab

https://tabchop.app/overview
2•mishang•31m ago•1 comments

Show HN: I made an anonymous voice threads app to rant, spill, debate or confess

https://www.rants.link/
2•Izuchukwu-Eric•32m ago•0 comments

HTTP Dogs

https://http.dog/
2•adocomplete•35m ago•1 comments

ICE Begins Warehouse-Buying Spree Despite Local Protests

https://www.bloomberg.com/news/newsletters/2026-01-30/ice-begins-warehouse-buying-spree-despite-l...
4•Anon84•36m ago•0 comments

Costco Is Sued over Preservatives in Its $5 Rotisserie Chickens

https://www.nytimes.com/2026/01/29/business/costco-chicken-lawsuit-preservatives.html
2•whack•37m ago•0 comments

A Google Sheet of Bangkok condo rental posts extracted from a Facebook group

https://docs.google.com/spreadsheets/d/193P_8a2iWQuljA8Z7Fa1qR5S4UUuync8vB-5x0__eck/edit?usp=sharing
1•tanin•37m ago•1 comments

How Lost 1930s-Era Paintings Owned by US Government Were Recovered

https://www.bloomberg.com/news/newsletters/2026-01-30/depression-era-paintings-recovered-by-gener...
1•toomuchtodo•38m ago•1 comments

Iran: A time for FAFO and a time for TACO

https://sphera.substack.com/p/iran-no-deal
1•KyleVlaros•40m ago•0 comments

Ligma Solutions: Consulting Without Limits

https://ligmasolutions.com/
1•dapomeranz•40m ago•0 comments

Community Considerations Around AI Contributions

https://blog.scientific-python.org/scientific-python/community-considerations-around-ai/
2•todsacerdoti•40m ago•0 comments

SpaceX Starship Flight 12: Final Steps Done Florida Is Getting Ready for V3 [video]

https://www.youtube.com/watch?v=_UPy4rmlK9I
1•bookmtn•41m ago•0 comments

Claude Controls the Perseverance Rover on Mars

https://twitter.com/AnthropicAI/status/2017313346375004487
1•sebmellen•42m ago•0 comments

Resurrectionists in the United Kingdom

https://en.wikipedia.org/wiki/Resurrectionists_in_the_United_Kingdom
1•Teever•42m ago•0 comments

voyage-multimodal-3.5: a new multimodal embedding frontier with video support

https://blog.voyageai.com/2026/01/15/voyage-multimodal-3-5/
1•fzliu•42m ago•0 comments

Show HN: FuturLang – Natural language formal verification

1•wapiou•43m ago•1 comments

3 Million new pages of Epstein files released

https://www.theguardian.com/us-news/2026/jan/30/epstein-files-3-million-new-pages
8•mellisacodes•43m ago•2 comments
Open in hackernews

Ask HN: How do you catch cron jobs that "succeed" but produce wrong results?

1•BlackPearl02•1h ago
I've been dealing with a frustrating problem: my cron jobs return exit code 0, but the results are wrong.

Examples: Backup script completes successfully but creates empty backup files Data processing job finishes but only processes 10% of records Report generator runs without errors but outputs incomplete data Database sync completes but the counts don't match The logs show "success" — exit code 0, no exceptions — but the actual results are wrong. The errors might be buried in logs, but I'm not checking logs proactively every day.

I've tried: Adding validation checks in scripts (e.g., if count < 100: exit 1) — works, but you have to modify every script, and changing thresholds requires code changes Webhook alerts — requires writing connectors for every script Error monitoring tools (Sentry, etc.) — they catch exceptions, not wrong results Manual spot checks — not scalable

The validation-in-script approach works for simple cases, but it's not flexible. What if you need to change the threshold? What if the file exists but is from yesterday? What if you need to check multiple conditions? You end up mixing monitoring logic with business logic.

I built a simple monitoring tool that watches job results instead of just execution status. You send it the actual results (file size, record count, status, etc.) and it alerts if something's off. No need to dig through logs, and you can adjust thresholds without deploying code.

How do you handle this? Are you adding validation to every script, proactively checking logs, or using something that alerts when results don't match expectations? What's your approach to catching these "silent failures"?

Comments

Bender•1h ago
Backup script completes successfully but creates empty backup files

The cron job itself would need to do sanity checks on results. e.g. comparison of before / after directory sizes, file counts, perhaps a few canary files that never change and then alter the exit status based on all of those checks after performing some math logic as well as trigger monitoring alerts via your preferred mechanism. Your script can control the exit status. Some use functions that perform sanity checks, cleanup traps, etc... and with each failure add a number to '$?' assuming bash adding text output to the end of the script to describe the failures when calling the script in verbose mode.

In other words, whatever you the human did to realize there is a problem have the script perform the same checks as if it were you and alter the exit status and/or perform whatever other alerting methods are available to you.

If changing the exit status be sure the script is idempotent as some cron daemons may try to re-run the script depending on specific exit status. In other words if run a second consecutive time determine what you really want the script to do. Read up on the cron daemon you are using and how it interprets exit status and what it will do.

t-3•57m ago
Validation checks are really the only solution if you can't fix the real problem - your processes are returning 0 when they are failing. Can you file a bug report?