Commit 350294e
committed
refactor(BA-5714): resolve rebase conflicts and add resolve_main_access_keys
- Resolve merge conflicts from cascading onto the updated slice E
(drf.py keeps ``existing_sess.user_uuid``; predicates.py keeps the
``main_ak is None`` early returns; scheduler types stay on
``main_access_key``; stream db_source keeps ``UserNotFound``).
- Add ``SchedulerRepository.resolve_main_access_keys`` and the matching
``ScheduleDBSource.resolve_main_access_keys`` so the coordinator's
cache-invalidation step can look up each session's owner
main_access_key in a single query. Required by
sokovan/scheduler/coordinator.py and lifecycle/deprioritize_sessions.py
call sites that were previously reading ``session_info.metadata.access_key``.1 parent 23db4d0 commit 350294e
3 files changed
Lines changed: 26 additions & 1 deletion
File tree
- changes
- src/ai/backend/manager/repositories/scheduler
- db_source
This file was deleted.
Lines changed: 20 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4774 | 4774 | | |
4775 | 4775 | | |
4776 | 4776 | | |
| 4777 | + | |
| 4778 | + | |
| 4779 | + | |
| 4780 | + | |
| 4781 | + | |
| 4782 | + | |
| 4783 | + | |
| 4784 | + | |
| 4785 | + | |
| 4786 | + | |
| 4787 | + | |
| 4788 | + | |
| 4789 | + | |
| 4790 | + | |
| 4791 | + | |
| 4792 | + | |
| 4793 | + | |
| 4794 | + | |
| 4795 | + | |
| 4796 | + | |
4777 | 4797 | | |
4778 | 4798 | | |
4779 | 4799 | | |
| |||
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
959 | 959 | | |
960 | 960 | | |
961 | 961 | | |
| 962 | + | |
| 963 | + | |
| 964 | + | |
| 965 | + | |
| 966 | + | |
| 967 | + | |
0 commit comments