PROJECT MANAGEMENT

Deadlock Trend Report from Postgres Dependency Snapshots

Snapshots the daily blocked-by graph into Postgres, detects active deadlocks, and emails leads a weekly report showing which cycles are new, which persist, and how long each has…

CategoryProject Management
Enginesim
Difficultyadvanced
Triggerschedule
Steps5
Setup~25 min

How it runs

The automated pipeline, trigger to output.

  • TriggerDaily + weekly schedule
  • ActionFetch dependency graph and detect cycles in LinearLinearLinear
  • ActionSnapshot cycles and edges to PostgresPostgreSQLPostgres
  • LogicDiff against prior snapshots; classify and age each cycle
  • OutputEmail leads the ranked weekly deadlock reportGmailGmail

What it does

A one-off deadlock alert is easy to ignore; a cycle that has been live for three weeks is not. This workflow records the dependency graph to Postgres every day, then once a week compares snapshots to report which deadlocks are brand new, which are recurring, and the age of each, turning a moment-in-time check into a trend you can manage.

When to use it

Use it when leadership needs accountability on stale cross-team blockers, not just a notification. The persisted history lets you prove a cycle has lingered and prioritize accordingly.

How it works

  1. 1A daily schedule triggers the snapshot run.
  2. 2Fetch the current open dependency graph from Linear and detect active cycles.
  3. 3Write today's cycles and edges into a Postgres history table.
  4. 4On the weekly run, query Postgres to diff this week's cycles against prior snapshots.
  5. 5Classify each cycle as new, persistent, or resolved and compute its age.
  6. 6Email leads a ranked weekly report with the oldest unresolved deadlocks at the top.

Set it up

What you configure once, before turning it on.

  1. 1
    Connect LinearIssues, projects, cycles, triage.
  2. 2
    Connect PostgresAny Postgres URL — query, write, migrate.
  3. 3
    Connect GmailRead, draft, send, label.
  4. 4
    Set each agent's modelWe leave models unset so you pick the tier — fast + cheap, or top-quality.
  5. 5
    Tune it to your dataEdit the prompts, filters, and field mappings so it matches how your team works.
  6. 6
    Test, then turn it onRun once against a sample, confirm the output, then enable the trigger.

Run this workflow in your colony.

14-day trial. No DevOps. No Sales call. Provisioned in under a minute.