Skip to content

Follow the background work, step by step

See every piece of work Codossier Office does after a save (workflow runs, schedules, sweeps, mail, agent replies), where it is and why in plain words, and retry, cancel or stop it when you need to.

4 steps·2 min read·Deployment and Data

See every piece of work Codossier Office does after a save, where it is and why in plain words, and retry, cancel or stop it when needed.

What it is

  • Builder → Monitoring → Async: the Async Factory, the one queue for everything that happens later.
  • Chips by state: Open, Failed, Missed, Grace Retry, Parked, Running, Succeeded and All.
  • Each row: when, status, kind, class, what it is about, tries, and why it is where it is.
  • Open a row for every try; retry a failed piece with its arrow.
  • Emergency stop pauses all background work for the office until an administrator resumes it.

Good to know

  • A failed queued job that nobody is waiting on also asks the administrators, as an approval, whether to run it again; unanswered for seven days, it lapses.
  • Cancelling names who did it, and work an attempt already committed stays committed.
  • Finished work is cleaned by the retention job for background work.

Before you start

  • Everything Codossier Office does later, rather than in the save itself (commands, schedules, workflow runs and their timers, sweeps, mail), goes through one queue: the Async Factory. Its screen says where each piece of work is and why.
  • Here, a working office's queue: what succeeded, what failed and was not retried, and the controls an administrator has.

1Open Monitoring → Async: the Async Factory

Go to Builder → Monitoring → Async. The chips filter the work by where it is: Open (waiting or under way), Failed, Missed (a scheduled piece that could not start in time), Grace Retry (failed once and waiting for another try), Parked (held until something it needs is back), Running, Succeeded and All. Each row gives when it was made, its status, its Kind and Class (for example a workflow run or a scheduled slot), what it is About, how many Tries, and Why it is where it is, in words.

Follow the background work, step 1: Open Monitoring → Async: the Async Factory (Waiting or under way; Will try again; Done; Where it is, and why)
1Waiting or under way2Will try again3Done4Where it is, and why

2Failed: read why, then retry

Open Failed. Why says what went wrong in plain words, for example work that could not be reached within a day of its time, or a failure a retry cannot fix. The arrow at the end of a row retries it. When a queued job fails with nobody waiting on it, the administrators are also asked by an approval whether to run it again; unanswered for seven days, it lapses.

Follow the background work, step 2: Failed: read why, then retry (Why it failed; Retry it)
1Why it failed2Retry it

3Open a row: every try

Click the arrow at the start of a row to open it: each try is listed with when it started and when it ended. A running piece of work renews its lease every 30 seconds, so a crashed worker is noticed and the work's own retry pattern decides whether it runs again; work an attempt already committed stays committed.

Follow the background work, step 3: Open a row: every try (Open the row; Each try, start to end)
1Open the row2Each try, start to end

4Emergency stop: pause all background work

Emergency stop pauses the whole factory for this office at once: nothing new starts until an administrator resumes it, with the reason recorded. Use it only when something is going badly wrong (a runaway loop, a vendor sending bad answers); running work stops at its next heartbeat. To stop just one piece of work, or all the work about one record, cancel it instead: the cancel names who did it.

Follow the background work, step 4: Emergency stop: pause all background work (Pause everything)
1Pause everything

What next