Submit approved MySQL postmortems to Chaindesk

Add an approved incident review to a private knowledge base and record when Chaindesk finishes indexing the report.

19 stepsOperations

Free to start, no card required.

How it works

  1. When this happens

    Process the next incident review

    Schedule

  2. Step 1 · Code

    Set the team and private datastore

  3. Step 2 · MySQL

    Prepare the incident handoff register

  4. Step 3 · MySQL

    Read one approved or queued report

  5. Step 4 · Code

    Match the report to its approval

  6. Step 5

    Check for an eligible report

    Follows the first path that matches

    • A report is ready for work

      1. Step 6

        Choose submission or indexing check

        Follows the first path that matches

        • A new report is approved

          1. Step 7 · MySQL

            Reserve the approved report text

          2. Step 8

            Check who reserved the report

            Follows the first path that matches

            • This run reserved the report

              1. Step 9 · Chaindesk

                Submit the final report to Chaindesk

              2. Step 10 · Code

                Check the queued Chaindesk source

              3. Step 11 · MySQL

                Record the new report source ID

              4. Step 12 · Code

                Confirm the submission receipt

            • Otherwise

              Nothing happens

        • Otherwise

          1. Step 13 · MySQL

            Mark the indexing check time

          2. Step 14

            Check the queued report reference

            Follows the first path that matches

            • The source is still queued

              1. Step 15 · Chaindesk

                Read the report’s indexing state

              2. Step 16 · Code

                Check indexed chunks or a failure

              3. Step 17 · MySQL

                Save the verified indexing state

              4. Step 18 · Code

                Confirm the indexing update

            • Otherwise

              Nothing happens

    • Otherwise

      Nothing happens

Before you start

Set the team key and private Chaindesk datastore ID and give MySQL access to create and update postmortem_handoffs. Add one final redacted report per incident with team_key, report_id (PIR-YYYY-NNNN), report_text, approved_sha (SHA-256 of UTF-8 text), approved_at in UTC and state ready, allowing access only to the same authorized audience. Each hourly run handles one submission or indexing check, and a record stuck in submitting requires checking the named file before another attempt.

Accounts to connect

See all 419 in Operations

Your first automationstarts with one sentence.

Start free with 1,000 credits, no card needed. Rather have it done for you? Our team builds it.

Use template