Skip to main content

Function: generateProcessableId()

generateProcessableId(prefix?): string

Defined in: packages/core/src/types.ts:25

A process-unique id, ${prefix}-${counter}-${timestamp}. Not stable across restarts.

Parameters​

prefix?​

string = 'processable'

Returns​

string

Example​

generateProcessableId('baleybot') // 'baleybot-1-a3f891'
generateProcessableId('processor') // 'processor-2-b4c2d3'