generalbots/src/basic/compiler
Rodrigo Rodriguez (Pragmatismo) 5b08bd887e feat(compiler): clean up stale schedules on script recompilation
Added tracking of previously scheduled scripts using a `HashSet` and initialized it in `BasicCompiler::new`. Updated `compile_file` and `preprocess_basic` to require mutable access, allowing schedule cleanup before processing. Implemented logic to delete existing scheduled automations for a script using Diesel queries, ensuring old schedules are removed when a script is recompiled without a `SET_SCHEDULE`. Added necessary Diesel imports and `TriggerKind` reference. This prevents duplicate or orphaned scheduled tasks.
2025-11-05 10:15:36 -03:00
..
compiler.test.rs feat: refactor auth and models, update LLM fallback strategy 2025-11-04 23:11:33 -03:00
mod.rs feat(compiler): clean up stale schedules on script recompilation 2025-11-05 10:15:36 -03:00