Schedulers
Purpose
Section titled “Purpose”Describe scheduled jobs for maintenance windows and on-call.
Source
Section titled “Source”leekimerp/leekimerp/hooks.py→scheduler_eventsleekimerp/leekimerp/scheduler_events/
Cron schedule
Section titled “Cron schedule”| Schedule | Handler | Role |
|---|---|---|
0 7 * * * | leekimerp.scheduler_events.agm_legacy.agm_conditional_legacy | AGM legacy conditional job |
0 8 * * * | leekimerp.tasks.generate_auto_emails_all | Auto email generation |
Operational notes
Section titled “Operational notes”- AGM / auto-email:
hooks.pycontains long comments aboutafter_agm_update_generate_auto_emailbreaking cron — coordinate with Known issues before changes. - Ensure scheduler worker is running in production (
bench doctor/ scheduler process).
Dependencies
Section titled “Dependencies”tasks.pyimplementations referenced by cron strings