perf(engine): pass config to run_job to avoid N+1 config loads #136
No reviewers
Labels
No labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
thwap/kronai!136
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/0094-config-loaded-n-plus-1"
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?
What
Add optional
configparam torun_job(). When provided, config is not reloaded from disk.run_interval()now loads config once and passes it to each job.Why
Eliminates N redundant
load_config()calls when running N jobs in an interval.Testing
Closes #94
7aded86ef1dcab40a20fdcab40a20f4e9ec21af3Automated Review — PR #136
Result: APPROVED
Clean perf fix — adds optional
configparam torun_job().run_interval()now loads config once and passes it, eliminating N redundantload_config()calls. Backward-compatible (defaults to None, loads from disk). Closes #94.No suggestions.