Convert orgreg import to task
To reduce the amount of code and complexity of the service we move away from a management command triggered by a cronjob, to a task handled by django-q. Everything works the same way as before, but the management command now schedules the task instead of doing it. Introduces the ORGREG_SCHEDULE_TYPE settings variable controlling the scheduled when scheduling the import using the management command.
parent
dca89da3
No related branches found
No related tags found
Showing
- greg/importers/__init__.py 0 additions, 0 deletionsgreg/importers/__init__.py
- greg/importers/orgreg.py 247 additions, 0 deletionsgreg/importers/orgreg.py
- greg/management/commands/import_from_orgreg.py 8 additions, 238 deletionsgreg/management/commands/import_from_orgreg.py
- greg/tasks.py 6 additions, 0 deletionsgreg/tasks.py
- greg/tests/management/test_import_from_orgreg.py 7 additions, 114 deletionsgreg/tests/management/test_import_from_orgreg.py
- greg/tests/test_tasks.py 118 additions, 1 deletiongreg/tests/test_tasks.py
- gregsite/settings/base.py 4 additions, 0 deletionsgregsite/settings/base.py
Loading
Please register or sign in to comment