Ir para o conteúdo

polling_service

module wittgenstein_crm_client.sync.polling_service

Classes

  • CRMPollingService — Fallback polling service to fetch changes periodically when webhooks are not available.

wittgenstein_crm_client.sync.polling_service.CRMPollingService

class CRMPollingService(client: CRMClient, poll_interval_seconds: int = 3600)

Fallback polling service to fetch changes periodically when webhooks are not available.

Methods

  • start — Start the polling loop.

  • stop — Stop the polling loop.

wittgenstein_crm_client.sync.polling_service.CRMPollingService.start

async method CRMPollingService.start(self, callback: Callable[[str, FunnelStage], Coroutine[Any, Any, None]])

Start the polling loop.

wittgenstein_crm_client.sync.polling_service.CRMPollingService.stop

async method CRMPollingService.stop(self)

Stop the polling loop.