Automation library · Integrations

Acquire hierarchical mutex tokens

Started by an event in a connected app, and works across n8n data table. 17 steps, 2 branches, 2 loops or waits: a working afternoon to understand properly.

Medium

17 stepsMedium: a working afternoon
2Branches: places the flow splits
2Loops or waits
1Service it connects to

The flow

Starts it 1Logic 12Service 4

The steps in the order they run, from what starts it.

  1. 1When Called by Another WorkflowExecute Workflow triggerStarts it
  2. 2Resolve Namespace ChainCodeLogic
  3. 3Get All Mutex RowsData TableService
  4. 4Plan Namespace ClaimsCodeLogic
  5. 5Should Wait?IfLogic
  6. 6Wait For Slot Or QuotaWaitLogic
  7. 7Split ClaimsSplit OutLogic
  8. 8Upsert Claimed LevelsData TableService
  9. 9Limit After UpsertLimitLogic
  10. 10Verify All Mutex RowsData TableService
  11. 11Confirm Chain OwnershipCodeLogic
  12. 12Claim Succeeded?IfLogic
  13. 13Return TokenSetLogic
  14. 14Split Rollback KeysSplit OutLogic
  15. 15Rollback Partial ClaimsData TableService
  16. 16Limit After RollbackLimitLogic
  17. 17Wait After RaceWaitLogic

How it's built

Starts on
An event in a connected app
Steps
17, with 2 branches, 2 loops or waits
Size
Medium: a working afternoon
Connects to
n8n data table
Model
None. This is plumbing, not judgement

Questions

What does it need to run?

An n8n account. You connect your own accounts after importing it; none are included.

What starts it?

It starts on an event in a connected app.

Does it use AI?

No. Every step is fixed logic or a call to a service, so it does the same thing every time.

How long does it take to set up?

Plan an afternoon. 17 steps is enough that you should read each one before running it.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

Before you run it

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 17 steps before you point it at anything that matters.