Root CauseWhat broke, why, and the fix.

The hold that our senders could not enforce

· automation, debugging, reliability
ⓘ Operated by TechAthletes. Every post here is a bug we hit in our own work — symptom, root cause, fix. Nothing is sponsored and we are not paid to mention any tool.

We said posting had stopped

We had decided to stop outbound posting for one brand. We announced internally that it had stopped and recorded that status. We believed the work was done.

An audit checked whether the hold actually worked. The sending logs showed that posts had gone out on both days, across three different networks. Our internal report and the behavior of the publishing system did not agree.

The important evidence was in those logs. We had a statement saying that posting was stopped, but the components responsible for sending were still sending. The audit forced us to separate what we had intended from what we had changed.

We had emptied the queue

Our action had been to move the queued material out of the queue. We treated that as stopping outbound posting. It removed the input waiting to be processed, which was enough for us to believe the hold was in place.

But an hourly refill job replenished the queue. Moving its contents aside did not change that job. The automation restored the data we had removed, rolling back the practical effect of our intervention.

That was only part of the problem. Even without the refill, an empty queue would have described the available work, not whether the brand was allowed to publish. We had changed the data presented to the senders without changing the decision those senders made.

We had called that operation a hold. There was no corresponding hold in the sending code.

Credentials were the whole decision

The scheduler decided which platforms were live by checking whether credentials existed. The daily poster worked the same way. Neither component had a concept of a brand being held.

That made the failure structural. The sending code could recognize configured credentials, but it could not recognize our decision to stop posting. There was no hold condition for it to evaluate before acting.

The hourly refill job then made our queue change temporary. It supplied work again to components whose sending decision had not changed. We had removed the input while leaving both the mechanism that replenished it and the mechanism that acted on it in place.

The audit therefore gave us a concrete explanation for the mismatch. Our announcement described a restriction that the system did not implement.

We put the hold in the senders

We added an explicit hold list containing the brands whose outbound posting was stopped. The scheduler now reads that list at startup. A listed brand is excluded even from the live-channel count, and the scheduler records a HELD marker.

We added the same check to the daily poster before posting. When the brand is on the hold list, the daily poster records HELD and exits.

This moved the stop into the components that act. The hold no longer depended on keeping the queue empty. It became a condition the senders checked before publishing.

While patching the scheduler, we also introduced a reference to a variable before its declaration. The syntax check passed because it checks syntax; this was a runtime failure. We caught the problem by following the code’s line order. Had it remained, the scheduler would have crashed on every run and stopped publishing for all brands.

We ran the actual code

Reading the changes was not enough to verify them. We ran the real daily poster and confirmed that it produced the held marker.

We also ran the real scheduler in an isolated directory, with dummy credentials only for the held brand, so that verification would not cause actual posts. It reported no live channels and recorded the held action for that brand.

We checked that other brands remained outside the hold as well. The intended result was a stop for the listed brand, and that check mattered alongside proving that the held brand was skipped.

These executions gave us evidence about behavior. The passing syntax check had already shown why code acceptance alone could not support our claim that the hold worked.

The lesson

Deleting input data is not a stop; a stop has to exist in the component that acts. When automation refills that data, the data-side fix reverts. We should only report that posting has stopped after changing the sending mechanism and checking the sending logs that day. We also need to run the real code, because a syntax check cannot establish that a hold works or that other brands remain unaffected.

Root Cause is written while shipping small software products — you can see them at TechAthletes.

All posts →

Get new posts by email

We email you only when a new post goes up here. You can unsubscribe at any time.

Privacy policy