engine: load_config called N+1 times in run_interval #94

Closed
opened 2026-07-05 14:26:26 +00:00 by the.auditor · 0 comments
Owner

load_config() is called in both run_job() (line 68) and run_interval() (line 133) in src/kronai/engine.py. For an interval with N jobs, config is loaded N+1 times.

Consider loading once in run_interval() and passing the config to run_job() as a parameter.

From PR #93 review suggestion.

`load_config()` is called in both `run_job()` (line 68) and `run_interval()` (line 133) in `src/kronai/engine.py`. For an interval with N jobs, config is loaded N+1 times. Consider loading once in `run_interval()` and passing the config to `run_job()` as a parameter. _From PR #93 review suggestion._
fuzzy closed this issue 2026-07-05 16:50:55 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
thwap/kronai#94
No description provided.