Skip to content
  • Home
  • About
  • No Access
  • Privacy Policy
Bits of .NET
Bits of .NET
  • Asp.Net Core
  • C#
  • SQL
  • JavaScript
  • CSS
  • About
  • ErcanOPAK.com
  • No Access
  • Privacy Policy

Bits of .NET

Daily micro-tips for C#, SQL, performance, and scalable backend engineering.

  • Asp.Net Core
  • C#
  • SQL
  • JavaScript
  • CSS
  • About
  • ErcanOPAK.com
  • No Access
  • Privacy Policy

Tag: Jobs

Kubernetes

Kubernetes: Fix a CronJob’s Jobs Piling Up Unfinished Because the Pod Template’s restartPolicy Was Set to Always Instead of OnFailure

- 01.11.26 - ErcanOPAK comment on Kubernetes: Fix a CronJob’s Jobs Piling Up Unfinished Because the Pod Template’s restartPolicy Was Set to Always Instead of OnFailure

☸️ Fix a CronJob’s Jobs Piling Up Unfinished Because the Pod Template’s restartPolicy Was Set to Always Instead of OnFailure A CronJob’s pod template inherits the same validation rules as a plain Job, and the Job API flatly rejects restartPolicy: Always on its pod template – a Job’s pods are only ever allowed to use […]

Read More
Kubernetes

Kubernetes: Fix a CronJob That Silently Skips Its Scheduled Run Because the Previous Job Is Still Marked Active

- 23.10.26 - ErcanOPAK comment on Kubernetes: Fix a CronJob That Silently Skips Its Scheduled Run Because the Previous Job Is Still Marked Active

☸️ concurrencyPolicy: Forbid Means Forbid, Even Silently A CronJob configured with the default concurrencyPolicy of Forbid is doing exactly what its name says when it skips a scheduled run – but there’s no event, no warning, and nothing in kubectl get cronjobs that clearly explains why the run you expected at 2:00 AM simply never […]

Read More
Kubernetes

Kubernetes: Fix a Job That Reruns Every Item From Scratch on Pod Restart Because Nothing Tracks Which Items It Already Processed

- 22.10.26 - ErcanOPAK comment on Kubernetes: Fix a Job That Reruns Every Item From Scratch on Pod Restart Because Nothing Tracks Which Items It Already Processed

☸️ A Job’s Pod Has No Memory of Its Own Progress A Kubernetes Job gives you retry-on-failure for free through backoffLimit, but what it doesn’t give you for free is any notion of partial progress – when a pod processing a long batch dies partway through (OOMKilled, node pressure eviction, a transient network error) and […]

Read More
Kubernetes

Kubernetes: Fix a Sidecar Container That Keeps the Pod Running Forever Because It Never Signals Completion to the Job Controller

- 04.10.26 - ErcanOPAK comment on Kubernetes: Fix a Sidecar Container That Keeps the Pod Running Forever Because It Never Signals Completion to the Job Controller

☸️ The Sidecar That Never Let the Job Finish A Job is only considered complete once every container in its pod has exited, and a sidecar added for logging, a service mesh proxy, or metrics collection typically runs as a long-lived process with no built-in reason to ever exit on its own – which is […]

Read More
Kubernetes

Kubernetes: Fix a Job That Keeps Recreating Failed Pods Forever Because backoffLimit Was Never Set

- 04.10.26 - ErcanOPAK comment on Kubernetes: Fix a Job That Keeps Recreating Failed Pods Forever Because backoffLimit Was Never Set

☸️ The Job That Kept Trying the Same Failing Pod Forever A Job’s retry limit controls how many times it retries a failing pod before giving up and marking the Job itself as failed; it defaults to a bounded number, but combined with an exponential backoff between retries, a Job whose underlying failure is permanent […]

Read More
Kubernetes

Kubernetes: Use Jobs for One-Time Tasks and CronJobs for Scheduled Tasks

- 14.06.26 - ErcanOPAK comment on Kubernetes: Use Jobs for One-Time Tasks and CronJobs for Scheduled Tasks

⏰ Run Batch Jobs and Scheduled Tasks in Kubernetes Pods run forever. Jobs run to completion. CronJobs run on schedule. Perfect for backups, reports, data processing. 📝 Job Example (One-Time) apiVersion: batch/v1 kind: Job metadata: name: database-backup spec: template: spec: containers: – name: backup image: postgres:15 command: [‘pg_dump’, ‘-h’, ‘postgres’, ‘-U’, ‘user’, ‘dbname’, ‘>’, ‘/backup/db.sql’] […]

Read More
November 2026
M T W T F S S
 1
2345678
9101112131415
16171819202122
23242526272829
30  
« Oct    

Most Viewed Posts

  • How to make theater mode the default for Youtube (1,055)
  • Get the User Name and Domain Name from an Email Address in SQL (980)
  • How to add default value for Entity Framework migrations for DateTime and Bool (976)
  • Get the First and Last Word from a String or Sentence in SQL (857)
  • How to select distinct rows in a datatable in C# (852)
  • How to enable, disable and check if Service Broker is enabled on a database in SQL Server (653)
  • Add Constraint to SQL Table to ensure email contains @ (607)
  • Average of all values in a column that are not zero in SQL (569)
  • How to use Map Mode for Vertical Scroll Mode in Visual Studio (546)
  • Find numbers with more than two decimal places in SQL (475)

Recent Posts

  • C#: Fix a ConditionalWeakTable Entry Vanishing Too Soon
  • Docker: Fix a Stale COPY Layer After Editing .dockerignore
  • Photoshop: Fix a Pattern Overlay Scaling Wrong on a High-DPI File
  • SQL Server: Fix a Computed Column Index Skipped by Implicit Cast
  • HTML5: Fix a required Input Inside a Hidden Tab Blocking Submit
  • SQL Server: Fix ROW_NUMBER Ties Reordering Between Identical Runs
  • C#: Fix an Enum HasFlag Returning True for the Zero Value
  • WordPress: Fix Featured Images Vanishing After a CDN Migration
  • Photoshop: Fix Content-Aware Fill Smearing a Repeating Pattern
  • Asp.Net Core: Fix Antiforgery Tokens Rejected Behind a Reverse Proxy

Most Viewed Posts

  • How to make theater mode the default for Youtube (1,055)
  • Get the User Name and Domain Name from an Email Address in SQL (980)
  • How to add default value for Entity Framework migrations for DateTime and Bool (976)
  • Get the First and Last Word from a String or Sentence in SQL (857)
  • How to select distinct rows in a datatable in C# (852)

Recent Posts

  • C#: Fix a ConditionalWeakTable Entry Vanishing Too Soon
  • Docker: Fix a Stale COPY Layer After Editing .dockerignore
  • Photoshop: Fix a Pattern Overlay Scaling Wrong on a High-DPI File
  • SQL Server: Fix a Computed Column Index Skipped by Implicit Cast
  • HTML5: Fix a required Input Inside a Hidden Tab Blocking Submit

Social

  • ErcanOPAK.com
  • GoodReads
  • LetterBoxD
  • Linkedin
  • The Blog
  • Twitter
© 2026 Bits of .NET | Built with Xblog Plus free WordPress theme by wpthemespace.com