lunary-ai / lunary-py

Lunary AI Python Client (Analytics, monitoring and evaluations for GenAI apps)
https://lunary.ai/docs/py
19 stars 15 forks source link

run_ctx.get return None #47

Open BespalovSergey opened 2 months ago

BespalovSergey commented 2 months ago

Hello. When using caching, we update the event by adding the cache True metadata and taking the event id from run_ctx. After upgrading lunary to version 1.0.32 run_ctx.get returns None and as a result, the event cannot be updated.

vincelwt commented 2 months ago

@hughcrt

7HR4IZ3 commented 2 months ago

@hughcrt In commit 60105b5 lunary/__init__.py, run_id was being set in line 91, but was removed. Was it moved somewhere else?

hughcrt commented 2 months ago

Hi @BespalovSergey, we've implemented a new way to manage the run contexts, and sorry it breaks your use case. I will investigate this an find a solution