Check Data Ingestion Status
Data added to Zep is processed asynchronously and can take a few seconds to a few minutes to finish processing. In this recipe, we show how to check whether a given data upload request (also known as an Episode) is finished processing by polling Zep with the graph.episode.get
method.
First, let’s create a user:
Now, let’s add some data and immediately try to search for that data; because data added to Zep is processed asynchronously and can take a few seconds to a few minutes to finish processing, our search results do not have the data we just added:
We can check the status of the episode to see when it has finished processing, using the episode returned from the graph.add
method and the graph.episode.get
method:
Now that the episode has finished processing, we can search for the data we just added, and this time we get a result: