UUID Use Case

UUID Worker ID

Workers pull jobs concurrently. A UUID worker ID lets the scheduler know who holds what without assigning numbers.

Concurrent-safeAttributablev4

Generated locally with the Web Crypto API — nothing leaves your browser.

What Is UUID Worker ID?

How to generate

  1. Assign a v4 UUID when the worker boots.
  2. Include it in job claims and locks.
  3. Use it to detect stale workers.

Use Cases

Code Examples

JavaScript
const id = crypto.randomUUID();
Python
import uuid
id = uuid.uuid4()

Frequently Asked Questions

Worker ID in the database?
Yes — as the owner column on jobs/locks so you can reassign on failure.
Reuse across restarts?
Generate fresh each boot unless you need continuity of ownership.

Related tools