Don't initialize Celery on UI startup if direct transfer isn't enabled
Overview
The UI can still be used to stage data for non-direct transfer based migrations. However, we still initialize Celery by default even if DT is not enabled. We need to be able to decouple that until we fully replace docopt
for click
for CLI functionality.
Tasks
-
Check in config if direct transfer is enabled -
If it's not enabled, don't initialize the celery app -
Update docs if needed (workflow, runbooks, README, migration metrics, etc.)
Acceptance Criteria
-
Existing UTs pass locally -
100% code coverage on new code
@gitlab-org/professional-services-automation/tools/migration