{
  "id": 22983998,
  "title": "A job that refuses to start should say so: fail-closed config you can alert on",
  "url": "https://urgent.news/2026/12/01/a-job-that-refuses-to-start-should-say-so-fail-closed-config-you-can",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-12-01T17:19:24.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/ericgitangu/a-job-that-refuses-to-start-should-say-so-fail-closed-config-you-can-alert-on-1e95"
  },
  "original_language": null,
  "account": "Eric Gitangu, a backend systems developer for a mobility/fintech platform, advocates for a \"no default for a required setting\" rule and a design approach to handle jobs that refuse to start due to missing required settings. The core idea is to keep the job from running with placeholder values and to alert on the failure.\n\nWhen a job cannot start because a required setting is missing, the system should not carry on with a placeholder value. Instead, the process should stop immediately and provide a clear indication of the issue. This is achieved through a lenient loader and a strict reader. The loader attempts to read the settings file, and if it fails, it records the reason without stopping the job. The strict reader then checks the loader's outcome and, if necessary, refuses to start the job.\n\nThe loader records the reason for the failure, either because the file is missing or unreadable. This information is passed along the layers of the system, providing more context when the job fails to start. The refusal of the job generates a metric file that can be collected by a metrics agent for monitoring purposes.\n\nThe alert system is designed to be informative and actionable. It tracks the time of the refusal and uses recent refusal data to trigger the alert. The alert goes quiet after an hour if the issue is resolved, allowing for troubleshooting without false positives. The alert message provides details on the reason for the refusal and suggests next steps for resolving the issue.\n\nThe design follows a principle of \"fail-closed,\" which means it stops the process when it detects a configuration error, rather than carrying on with incorrect values. This approach ensures that the system does not run incorrect operations and helps in quickly identifying and fixing issues.",
  "summary": "I'm Eric Gitangu. I work on backend systems for a mobility/fintech platform. This one is about a rule I like, \"no default for a required setting\", and a design question that comes with it: when a job refuses to start under that rule, who hears it, and what do they learn? The rule Some settings must never have a fallback. If the value is not there, the process stops with a line that names the…",
  "summary_source": "publisher",
  "key_points": [],
  "editors_take": null,
  "opinion": false,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "machine_translated": false,
  "ai_generated": true,
  "disclaimer": "Accounts, briefs, key points, the editor’s take and translations are written by software from other outlets’ reporting and may contain errors. A summary whose summary_source is \"publisher\" is the outlet’s own feed text. Always check the linked original."
}