feat(tasks): shared VRAM-aware LLM task scheduler #2
No reviewers
Labels
No labels
architecture
backlog
enhancement
module:documents
module:hardware
module:manage
module:pipeline
module:voice
priority:backlog
priority:high
priority:medium
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: Circuit-Forge/circuitforge-core#2
Loading…
Reference in a new issue
No description provided.
Delete branch "feature/shared-task-scheduler"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
circuitforge_core.tasks.scheduler— a generic, VRAM-aware background task scheduler extracted from Peregrinetask_types,vram_budgets, and arun_task_fn; the core handles threading, VRAM accounting, and queue depth/api/nodes(lease-aware free VRAM) →scripts.preflight.get_gpus()total → 999.0 (unlimited fallback)_batch_workeris the sole authority for_reserved_vramaccounting (infinally) — fixes double-decrement race vs_scheduler_loopreapertimeout=30on all connections,INSERT OR IGNOREin migrations, parameterized_byok_unlockable/_local_vision_unlockableincan_use()/tier_label()Test plan
conda run -n cf pytest tests/test_tasks/ -v— 13 tests passreset_scheduler()_reserved_vramreturns to 0 after task completes