Commit Graph

21 Commits

Author SHA1 Message Date
Kian Jones
f5c4ab50f4 chore: add ty + pre-commit hook and repeal even more ruff rules (#9504)
* auto fixes

* auto fix pt2 and transitive deps and undefined var checking locals()

* manual fixes (ignored or letta-code fixed)

* fix circular import

* remove all ignores, add FastAPI rules and Ruff rules

* add ty and precommit

* ruff stuff

* ty check fixes

* ty check fixes pt 2

* error on invalid
2026-02-24 10:55:11 -08:00
Kian Jones
c92e1d56bb fix: use async_session_factory directly in scheduler (#5944)
DatabaseRegistry.get_async_session_factory() was removed during the sync
DB removal refactor, but scheduler.py still referenced it. This caused
AttributeError failures in all integration and send-message tests.

Fix by importing and using async_session_factory() directly from db module.
2025-11-13 15:36:50 -08:00
cthomas
7132104f4d chore: bump version 0.8.13 (#2718)
Co-authored-by: Kian Jones <11655409+kianjones9@users.noreply.github.com>
Co-authored-by: Sarah Wooders <sarahwooders@gmail.com>
Co-authored-by: Matthew Zhou <mattzh1314@gmail.com>
Co-authored-by: Andy Li <55300002+cliandy@users.noreply.github.com>
Co-authored-by: jnjpng <jin@letta.com>
Co-authored-by: Jin Peng <jinjpeng@Jins-MacBook-Pro.local>
Co-authored-by: cpacker <packercharles@gmail.com>
Co-authored-by: Shubham Naik <shub@letta.com>
Co-authored-by: Shubham Naik <shub@memgpt.ai>
2025-07-10 16:02:57 -07:00
cthomas
3a26e8173b chore: add traces to polling (#2713)
Co-authored-by: Kian Jones <11655409+kianjones9@users.noreply.github.com>
Co-authored-by: Sarah Wooders <sarahwooders@gmail.com>
Co-authored-by: Matthew Zhou <mattzh1314@gmail.com>
Co-authored-by: Andy Li <55300002+cliandy@users.noreply.github.com>
2025-07-08 20:28:00 -07:00
cthomas
ca6424470f chore: bump letta version 0.8.11 (#2711)
Co-authored-by: Kian Jones <11655409+kianjones9@users.noreply.github.com>
Co-authored-by: Sarah Wooders <sarahwooders@gmail.com>
Co-authored-by: Matthew Zhou <mattzh1314@gmail.com>
Co-authored-by: Andy Li <55300002+cliandy@users.noreply.github.com>
2025-07-07 17:03:26 -07:00
Andy Li
2c9647424d fix: batch jobs not being polled (#3034) 2025-06-25 17:07:21 -07:00
cthomas
60cf3341b1 feat: add configurable batch size (#2573) 2025-06-01 12:01:51 -07:00
cthomas
f864dfa4c6 fix: batch lock acquisition (#2572) 2025-06-01 11:47:43 -07:00
Matthew Zhou
82659a0915 feat: Add lookback weeks parameter for batch polling (#2407) 2025-05-25 20:02:06 -07:00
cthomas
271196d38f fix: batch poll scheduler (#2366) 2025-05-23 00:48:14 -07:00
cthomas
4151c05876 feat(asyncify): more batch db calls (#2350) 2025-05-22 23:12:11 -07:00
cthomas
65e32082f7 feat: convert many methods to async (#2193) 2025-05-15 12:09:40 -07:00
Matthew Zhou
1f49361a49 feat: Implement app-level leader election for polling jobs (#1991) 2025-05-02 12:56:23 -07:00
Matthew Zhou
213cad7b47 feat: Fix anthropic batch results call (#1853) 2025-04-23 13:14:56 -07:00
Matthew Zhou
cf480ab10a feat: Add distributed locking to the polling job (#1778) 2025-04-18 11:15:25 -07:00
Matthew Zhou
15fefe0e1a feat: Add callback for jobs (#1776)
Co-authored-by: Sarah Wooders <sarahwooders@gmail.com>
2025-04-18 10:48:04 -07:00
Sarah Wooders
41d85c4114 feat: add batch job tracking and generate batch APIs (#1727)
Co-authored-by: Matt Zhou <mattzh1314@gmail.com>
2025-04-17 17:02:07 -07:00
Matthew Zhou
cead849f19 feat: Implement resume step after request in new batch agent loop (#1676) 2025-04-15 13:56:22 -07:00
Charles Packer
5f7abf4eae fix: refactor the way we handle errors inside the electron app + add … (#1640) 2025-04-10 11:02:33 -07:00
Matthew Zhou
39dcaf1be7 feat: Add flag for enabling batch polling (#1651) 2025-04-09 15:42:18 -07:00
Matthew Zhou
63382c3591 feat: Create polling job for polling batch results (#1624)
Previous run passed all relevant checks, so skipping the wait. This new commit just merges main.
2025-04-08 16:42:12 -07:00