Skip to content
Snippets Groups Projects

Resolve "Celery tasks are not working properly"

Merged Jonathan Weth requested to merge 37-celery-tasks-are-not-working-properly into master
3 files
+ 8
5
Compare changes
  • Side-by-side
  • Inline
Files
3
@@ -32,7 +32,7 @@ class ImportCommand:
if background:
from .tasks import TASKS
task = TASKS[cls]
task = TASKS[cls.task_name]
task.delay()
else:
_untis_import_mysql(cls.get_terms())
@@ -90,3 +90,4 @@ class CurrentFutureImportCommand(ImportCommand):
COMMANDS_BY_NAME = {c.name: c for c in ImportCommand.__subclasses__()}
COMMANDS_BY_TASK_NAME = {c.task_name: c for c in ImportCommand.__subclasses__()}
Loading