In the 30 days to 22 November our run journal collected 426,839 rows, and 24,134 of them ended in failure. Most came from cron jobs that fired, failed, and fired again an hour later, with nothing remembering where the last attempt stopped.

Temporal went live on our own server on 22 November. It is too early for a before-and-after chart. What we can show is the data that pushed us there, the order we're moving jobs in, and the failures Temporal won't touch.

GTM jobs take days

A GTM job is rarely one request. Enrichment asks a provider for thousands of rows and hits a rate limit halfway. An outreach load stops until someone approves where it goes. A conference campaign runs for days, one step per person. Each of these takes hours, retries, waits for a human and has to survive a restart.

A cron line with a lock file handles none of it, and the journal shows what happened instead:

  • Collection runs stopped by a provider's 429 or by our one-lock-per-workspace rule, then sat until someone typed resume: 25 failed runs over 10 days, plus 74 lock refusals.
  • A loader that hit a missing approval and reported failure: 46 failed imports over 9 days and 21 failed loads over 8.
  • A browser job for an event app that failed 818 times in a row over 4 days. Each run failed on its own, so no single alert ever fired.
  • A reply whose person record couldn't be read, retried on every pass with no limit: 13,425 rows in 2 days.

The workflow keeps its place

In Temporal a workflow is code, and every finished step is written to a history. If the worker dies, another one replays the history and picks up after the last step that completed.

workflow loadPlay(play):
    await signal("destination_approved")      // waits days, costs nothing
    for target in play.targets:
        activity(addToCampaign, target,
                 retry = backoff(max = 5),    // bounded, then one alert
                 idempotency_key = target.id)
    await activity(recordSuppressions, play)  // a durable "done" step

The signal stands in for "fail and rerun by hand". The capped retry stands in for the loop that ran 13,425 times. The idempotency key means a retry after a lost receipt can't add the same person twice.

A failure that waits is a step. A failure that ticks again is an incident.

What Temporal won't fix

Before moving anything we ranked every flow. Each got a score from its failure days plus its Fix commits, weighted by cost: 3 when sends or replies stop, 2 when client data arrives late, 1 for an internal check. Then we read the root-cause line of every Fix commit in the window, 213 out of 1,296 commits.

It was humbling. Temporal clears out stuck runs, silent repeats, manual resumes and approval waits. It does not cut the number of fixes. Of 13 fixes in reply handling, not one was about orchestration. Of 23 in the client-brief flow, also none. Those were bugs in text and rules, and a durable workflow will carry a wrong rule just as reliably as a right one.

Three more groups are out of its reach too: vendor keys that answer 401, checks that report findings as failures, and jobs still firing for an event that has already closed. Each needs its own fix, and none of them is a workflow.

The order we move in

Jobs move in order of how often they break and get fixed. The client-brief flow goes last on purpose, because it works and nobody wants to touch a path that works.

  • Stage 0, the platform: a server, a worker and a test workflow that proves the round trip without touching client data, keys or sends.
  • A generic job runner. Our automation registry has 84 entries. Sorted by hand, 53 can move as they are, 13 need one extra field for a shared lock, 5 need their own code and 13 stay on the host.
  • Morning Fix, the early run that triages and repairs the night's failures. Of its last 18 daily logs, 7 never recorded a finish, and 5 of those stopped on a model subscription limit.
  • The night train, which carries code through the gate and ships it. It restarted on 18 days because main moved while it waited.
  • Everything else, by the same score.

The 13 jobs that stay on the host have to keep working when Temporal is down. They include the watchdogs, the credentials sync and Temporal's own worker.

Our own server

On 22 November we chose to host Temporal ourselves over the managed cloud. The setup is small: one server at about 10.69 euro a month, Temporal next to PostgreSQL, and two namespaces. Infrastructure jobs keep 3 days of history and production keeps 30. Backups go to separate storage, with the write-ahead log archived every 60 seconds, a full copy weekly and a diff daily. After a reboot test the service answered again in 27 seconds.

The server sits on a private network behind a firewall that lets in only the Engine host. Hosting it ourselves also means one more thing that can go down, which is exactly why the watchdogs live outside it.

What we haven't proven

Stage 0 is merged. The first production workflow, Morning Fix, was due on the morning of 23 November, and as of writing there is no live run. The proof will be the journal of that run, and a green gate doesn't count.

We also want Temporal to start our remote gate checks. On 22 November main moved three times while one branch waited, so two of three server runs were wasted, about 16 minutes each. Starting the check only when the branch reaches the front of the queue should cost one run per branch. For now that sits in the backlog as a guess.

A few lessons carry over without any of our code. Group failures by flow and by day: 24,134 failed rows meant little until we did. Read the root cause of every fix before you buy a workflow engine. Move first the jobs that wait on a person or a rate limit. And keep the watchdogs outside the thing they watch.

If your outreach or enrichment jobs fail on a schedule and you'd like to read your own journal this way, book a call at spicegtm.com.