|
@@ -89,6 +89,19 @@ int main(int argc, char** argv) {
|
|
|
|
|
|
|
|
svapi::FunctionRegistry functions(db);
|
|
svapi::FunctionRegistry functions(db);
|
|
|
svapi::FunctionRunLogStore functionRuns(db, cfg.functionRunsKept);
|
|
svapi::FunctionRunLogStore functionRuns(db, cfg.functionRunsKept);
|
|
|
|
|
+ // STATE THE EFFECTIVE VALUE, AND NAME THE OTHER ONE. Two settings trim this
|
|
|
|
|
+ // one log: this (`functions.runs_kept`, for HTTP-triggered runs) and the
|
|
|
|
|
+ // RUNNER's `function_runs_kept` in runner.json, for cron and job runs.
|
|
|
|
|
+ // Neither process can see the other's config, so a divergence is invisible
|
|
|
|
|
+ // - and on 2026-10-22 it cost a wrong answer to a consumer: this value was
|
|
|
|
|
+ // raised to 500 and verified through the API, while their cron functions
|
|
|
|
|
+ // went on being trimmed at 50 by the runner for twenty more minutes. A true
|
|
|
|
|
+ // reading of the wrong component. Logging both makes the mismatch one grep
|
|
|
|
|
+ // rather than a measurement.
|
|
|
|
|
+ spdlog::info("function run log keeps {} run(s) per function here (functions.runs_kept, for "
|
|
|
|
|
+ "HTTP runs); CRON AND JOB runs are trimmed by the runner's own "
|
|
|
|
|
+ "function_runs_kept in runner.json - if the two differ, one log is trimmed to "
|
|
|
|
|
+ "two depths", cfg.functionRunsKept);
|
|
|
// Same reason CollectionRegistry::bootstrap exists: the database only
|
|
// Same reason CollectionRegistry::bootstrap exists: the database only
|
|
|
// surfaces a collection through find() once it has been opened in this
|
|
// surfaces a collection through find() once it has been opened in this
|
|
|
// process, so without this every project's function registry reads back
|
|
// process, so without this every project's function registry reads back
|