Event Streaming - ashish-greycube/help GitHub Wiki

  • Setup consumers and producers

at times, registration fails, it is due to is_producer_online returns falls, you need to try 2-3 times to register it

  • Entry to host file

case when one of your client is offline, code uses from frappe.utils.data import get_url

for get_url to work correctly you need to have following entry in site_config.json for each server

"host_name": "https://art13.greycube.in"

  • Manual pull

run from console

from frappe.event_streaming.doctype.event_update_log.event_update_log import notify_consumers

notify_consumers()

  • Event update log

Event update log: consumers is updated when message has been read by consumer, so he is not resent the same message on the next sync

  • Ngrok for local

ngrok http -host-header=localhost -subdomain greylocal 8001

URL will be https://greylocal.ngrok.io

OR

lt --port 8001 --local-host localhost --subdomain greylocal