feat(tasks): add background task scheduler for LLM expiry fallback #6
No reviewers
Labels
No labels
backlog
beta-feedback
bug
duplicate
enhancement
help wanted
invalid
needs-design
needs-triage
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: Circuit-Forge/kiwi#6
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
app/tasks/runner.pywiring Kiwi tocircuitforge_core.tasks.schedulerexpiry_llm_fallback(2.0 GB VRAM budget) — callsExpirationPredictorwhen barcode/OCR expiry parsing failsinsert_task()is idempotent: returns(task_id, is_new)usingINSERT OR IGNOREbackground_taskstable + status indexapp/main.pystarts the scheduler and callsshutdown(timeout=10.0)+reset_scheduler()on teardownExpirationPredictorat module scope (required forpatch()to intercept it in tests)Test plan
expiry_llm_fallbacktask enqueues and runs via_run_expiry_llm_fallback()insert_task()calls return sametask_id,is_new=FalseView command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.