Skip to main content

execute_sync

Method
This is a method of the HookRunner class in the runner module.
Synchronous version of execute.

Signature

def execute_sync(event: HookEvent, input_data: HookInput, target: Optional[str]) -> List[HookExecutionResult]

Parameters

event
HookEvent
required
The event to execute hooks for
input_data
HookInput
required
Input data for the hooks
target
Optional
Optional target to filter hooks

Returns

Returns
List[HookExecutionResult]
List of execution results

Uses

  • asyncio.get_running_loop
  • asyncio.ensure_future
  • execute
  • loop.run_until_complete
  • asyncio.run

Source

View on GitHub

praisonaiagents/hooks/runner.py at line 126