[UPDT] BASE: Updated scheduler add_job function call by adding it in a condition to start

This commit is contained in:
Horilla
2025-01-07 15:13:47 +05:30
parent d6ab7f5d74
commit d827f6c807
7 changed files with 83 additions and 68 deletions

View File

@@ -48,7 +48,8 @@ def candidate_convert():
if not any(
cmd in sys.argv for cmd in ["makemigrations", "migrate", "compilemessages", "flush"]
cmd in sys.argv
for cmd in ["makemigrations", "migrate", "compilemessages", "flush", "shell"]
):
"""
Initializes and starts background tasks using APScheduler when the server is running.