UUID Use Case

UUID Job ID

A background job needs a stable handle for the lifetime of its execution. A v4 UUID job ID is unique across workers and machines.

PollableCancellablev4

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

What Is UUID Job ID?

How to generate

  1. Enqueue and return a v4 UUID.
  2. Store job state keyed by that id.
  3. Expose status/cancel endpoints using the id.

Use Cases

Code Examples

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

Frequently Asked Questions

Job ID in the URL?
Yes — it is opaque and unguessable; scope it to the owning user to prevent cross-access.
How long keep job records?
Until terminal (success/fail) plus a short retention for status polling, then delete.

Related tools