We are facing this issue again moralis-live-query-and-database-query-is-not-working-properly
Why can’t we re-open the ticket? Replies are not allowed.
Usage:
Moralis version - V1
Server - Moralis Hosted Server
We are using Moralis Queries and Live Queries for our event listeners infra where Live queries will emit the events which are used to process the event from the database. In case of failures, we use corn job to fetch the events using Moralis Queries and process them.
The state field in the screenshot is used to determine the state of the event
- Emtpy string / Undefined - untouched events yet to be processed
- Consumed - Processed events
- Failed - Failed Events
Before restarting our BE server:
After restarting our BE server which re-initiates the Moralis instance
Sometimes the Moralis Live queries are not emitting the event and also these events are not being fetched from Moralis queries to process the events. At the moment, if we re-initiate the Moralis by restarting the backend server, everything works properly.
Really don’t know why Moralis is not broadcasting the changes via Live query
Need your support on this ASAP