HookInput: {
    entity: string;
    hookArgs: any[];
    hookEntity: string;
    id: string;
    options?: Partial<HookOptions>;
}

Hook function inputs. Hooks augment running jobs.

Type declaration

  • entity: string

    The target function's entity identifier

    'user'
    
  • hookArgs: any[]

    The hook function's input arguments

    'notify'
    
  • hookEntity: string

    The hook function's entity identifier

    'user.notify'
    
  • id: string

    The target execution id (workflowId/jobId)

    'jsmith123'
    
  • Optionaloptions?: Partial<HookOptions>

    Extended options for the hook function, like specifying a taskQueue

    { taskQueue: 'priority' }