Waits until the specified job finishes, then resolves with its result or throws if the job fails.
A unique, private identifier for the job.
Do not reuse a jobId across clients—possessing the ID
allows anyone to inspect the job’s state.
Resolves a job this client owns successfully with its result.
Resolves a job this client owns as failed with an error message.
Starts a long-running job under a caller-generated jobId. The client owns the job until it
resolves it via completeJob or failJob; while owned, the job is kept alive so
core does not fail it. The jobId must be globally unique and kept private.
Handles job subscriptions and notifications.
Important: Each
jobIdmust be globally unique and kept private. Anyone who knows a job’s ID can query its status or result.