{
  "id": 14355564,
  "title": "Skip Holidays in .NET Scheduled Jobs with NaturalCron Custom Keywords",
  "url": "https://urgent.news/2026/10/14/skip-holidays-in-net-scheduled-jobs-with-naturalcron-custom-keywords",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-10-14T03:08:52.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/hugo_jose_9/skip-holidays-in-net-scheduled-jobs-with-naturalcron-custom-keywords-5h6n"
  },
  "original_language": "en",
  "account": "NaturalCron 1.1 allows you to include holidays in .NET scheduled jobs by using custom keywords. Instead of checking the date inside the job, you simply add keywords like \"holiday\" to your schedule. This lets the scheduler know which dates to exclude without having to write complex date-time logic. You can define a keyword once during application startup using a function that checks if a given date matches the rule (e.g., whether it's a holiday). This keyword can then be used in your schedule expressions just like built-in values. For example, \"every day except holiday\" will automatically skip holidays, weekends, and any other dates you define as holidays. This approach simplifies scheduling and makes your code more readable.",
  "summary": "With NaturalCron 1.1, you can finally teach your .NET jobs what a holiday is. You just add your own words to the schedule, like every day at 09:00 except holiday , and then define what counts as a holiday in C#. It's like giving your scheduler a tiny bit of common sense. How I got to this idea A schedule like “every weekday at 9, but not on holidays” is easy to say and hard to configure. Cron has…",
  "key_points": [
    "NaturalCron 1.1 adds holiday support to .NET scheduled jobs",
    "Custom keywords like 'holiday' exclude specific dates",
    "Simplifies scheduling, improves code readability"
  ],
  "editors_take": "Integrating holiday logic directly into scheduling expressions removes the need for manual date-time checks and simplifies the codebase for developers managing complex task automation.",
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}