Optional
expire?: numberthe number of seconds that the completed job should be left in the store before it is deleted
Optional
hooks?: HookRulesthe reentrant hook rules that define how to reenter a running graph
Optional
input?: { the schema for the input of the graph
Optional
output?: { the schema for the output of the graph
Optional
persistent?: booleanif the graph is reentrant and has open activities, the
persistent
flag will emit the job completed event.
This allows the 'main' thread/trigger that started the job to
signal to subscribers (or the parent) that the job
is 'done', while still leaving the job in a
state that allows for reentry (such as cyclical hooks).
Optional
publishes?: stringthe unique topic that the graph publishes/emits to when the job completes
the unique topic that the graph subscribes to, creating one job for each idempotent message that is received
Optional
transitions?: Record<string, any>the transitions that define how activities are connected
the activities that define the graph