Your AI second brain. Self-hostable. Get answers from the web or your docs. Build custom agents, schedule automations, do deep research. Turn any online or local LLM into your personal, autonomous AI (e.g gpt, claude, gemini, llama, qwen, mistral).
This pull request addresses a database connection leak caused by django-apscheduler not closing stale connections after task execution. The solution involves wrapping run_with_process_lock with the @close_old_connections decorator provided by django-apscheduler.
Description
This pull request addresses a database connection leak caused by
django-apscheduler
not closing stale connections after task execution. The solution involves wrappingrun_with_process_lock
with the@close_old_connections
decorator provided bydjango-apscheduler
.For more details, refer to the django-apscheduler documentation on database connections and timeouts.
Changes
@close_old_connections
decorator torun_with_process_lock
to ensure database connections are properly closed after each scheduled task.Related Issue