Skip to main content

LocalEventManager

crawlee.events.local_event_manager.LocalEventManager

Local event manager for emitting system info events.

Index

Constructors

Methods

Constructors

__init__

  • __init__(system_info_interval, event_manager_options): None
  • Create a new instance.


    Parameters

    • system_info_interval: timedelta = timedelta(seconds=1)
    • event_manager_options: Unpack[EventManagerOptions]

    Returns None

Methods

__aenter__

  • async __aenter__(): LocalEventManager
  • Initializes the local event manager upon entering the async context.

    It starts emitting system info events at regular intervals.


    Returns LocalEventManager

__aexit__

  • async __aexit__(exc_type, exc_value, exc_traceback): None
  • Closes the local event manager upon exiting the async context.

    It stops emitting system info events and closes the event manager.


    Parameters

    • exc_type: type[BaseException] | None
    • exc_value: BaseException | None
    • exc_traceback: TracebackType | None

    Returns None